Discussions
Activity
Sign In
FAQ
HOW TO: two working XBOX360 controller with PISNES
Kato
April 2014
Hi at all!
I Have now two working xbox360 controller in pisnes:
If some one want i make this little tutorial
Follows this steps:
---------------------
sudo apt-get install nano
---------------------
sudo cp /etc/modprobe.d/raspi-blacklist.conf /etc/modprobe.d/raspi-blacklist.conf.bak
---------------------
sudo nano /etc/modprobe.d/raspi-blacklist.conf
at the end of file add:
blacklist xpad
---------------------
sudo cp /home/pi/.profile /home/pi/.profile.bak
--------------------
sudo nano /home/pi/.profile
instead of:
sudo xboxdrv --silent --config /home/pi/pimame/config/xboxdrv_mapping.cfg --dbus session &
you put this:
sudo xboxdrv --silent --wid 0 --config /home/pi/pimame/config/xboxdrv_mapping.cfg --dbus session &
sleep 1
sudo xboxdrv --silent --wid 1 --config /home/pi/pimame/config/xboxdrv_mapping2.cfg --dbus session &
---------------------
sudo cp /home/pi/pimame/config/xboxdrv_mapping.cfg /home/pi/pimame/config/xboxdrv_mapping.cfg.bak
---------------------
sudo nano /home/pi/pimame/config/xboxdrv_mapping.cfg
---------------------
erase all
and write this (i have change default key to maching with xbmc key):
# KEY Configuration
# 1 Player -- XBMC and PISNES by Kato
# ==================
[xboxdrv]
led = 2
extra-devices = false
extra-events = false
deadzone = 6000
dpad-as-button = true
trigger-as-button = true
device-name = "Microsoft Xbox 360 Wireless Controller (PC)"
[ui-buttonmap]
A=KEY_ENTER
B=KEY_BACKSPACE
x=KEY_C
y=KEY_TAB
lb=KEY_Q
rb=KEY_SPACE
back=KEY_ESC
start=KEY_ENTER
tl=KEY_S
tr=KEY_M
du=KEY_UP
dd=KEY_DOWN
dl=KEY_LEFT
dr=KEY_RIGHT
lt=KEY_5
rt=BTN_LEFT
[ui-axismap]
x2 = KEY_KPMINUS:KEY_KPPLUS
y2 = KEY_F7:KEY_F9
x1 = KEY_LEFT:KEY_RIGHT
y1 = KEY_UP:KEY_DOWN
# XBMC BUG SOLVE
LT^resp:127:255=ABS_Z
RT^resp:127:255=ABS_RZ
# EOF #
---------------------
sudo nano /home/pi/pimame/config/xboxdrv_mapping2.cfg
---------------------
copy this:
# KEY Configuration
# 2 Player -- XBMC and PISNES by Kato
# ==================
[xboxdrv]
led = 3
extra-devices = false
extra-events = false
deadzone = 6000
dpad-as-button = true
trigger-as-button = true
device-name = "Microsoft Xbox 360 Wireless Controller (PC)"
[ui-buttonmap]
a=KEY_A
b=KEY_S
x=KEY_E
y=KEY_W
lb = KEY_K
rb = KEY_L
back = KEY_ESC
start = KEY_Y
dl = KEY_D
dr = KEY_G
du = KEY_R
dd = KEY_F
lt=KEY_5
rt=BTN_LEFT
[ui-axismap]
x2=KEY_T:KEY_Y
x1=KEY_D:KEY_G
y1=KEY_R:KEY_F
# XBMC and PISNES by Kato.
LT^resp:127:255=ABS_Z
RT^resp:127:255=ABS_RZ
# EOF #
---------------------
sudo cp /home/pi/pimame/emulators/pisnes/snes9x.cfg /home/pi/pimame/emulators/pisnes/snes9x.cfg.bak
---------------------
sudo nano /home/pi/pimame/emulators/pisnes/snes9x.cfg
---------------------
Replace [Keboard] mapping (from [Keybord] -included- until [Joystick] -excluded-) with this:
[Keyboard]
# Get codes from /usr/include/SDL/SDL_keysym.h
A_1=92
B_1=8
X_1=9
Y_1=99
L_1=113
R_1=32
START_1=270
SELECT_1=45
LEFT_1=276
RIGHT_1=275
UP_1=273
DOWN_1=274
QUIT=27
ACCEL=32
#player
2 keyboard controls
A_2=115
B_2=97
X_2=119
Y_2=101
L_2=107
R_2=108
START_2=121
SELECT_2=116
LEFT_2=100
RIGHT_2=103
UP_2=114
DOWN_2=102
---------------------
all done!
Conno123009
April 2014
Awesome! Thanks for this!
Conno123009
May 2014
Added to new FAQ topic! Thanks!
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
1,455
Custom Themes
84
General
1,185
FAQ
12
Solved Issues
100
Custom Builds
74
Recommended Accessories
Kodak Essential KP1000 USB Power Pack
HDMI 3-In 1-Out HDMI Auto Switch with 1.5 ft. Cable
Logitech Keyboard Controller for Logitech Revue and Google TV
FAVI Entertainment Wireless Keyboard (Built-in TouchPad/Laser Pointer) - Black
DVI Gear HDMI Cable 2M 6 feet
SanDisk Ultra SDHC Class 6 Flash Memory Card
Powered by Vanilla