
is the event associated with your controller (section 3 of this post) and, and are your controller mapping (section 4 of this post). # xboxdrv -evdev -evdev-absmap -axismap -evdev-keymap -mimic-xpad -silent & To do so, you'll have to initialize it like this: If you have any other controller, now that you have all your buttons and axis mapped, you must initialize xboxdrv properly. Just initialize xboxdrv like this and everything will be working: If you have a PS3 controller, you don't have to map your controller nor nothing. To see what each XBOX button is named after, you can use the built in xboxsrv help to see the valid names: Note that if you have a PS2 controller too, you won't have to map all your buttons again, since I already did this (just copy this list for further use). For a PS2 + USB adapter, this is how the final mapping list will look: I made an image to illustrate these valid XBOX buttons symbols you'll use to map your controller events. You must map these buttons to valid XBOX buttons symbols:īuttons: A, B, X, Y, RB (frontal upper right), RT (posterior upper right), LB (frontal upper left), LT (posterior upper left), START, BACKĭirectionals: DPAD_X (horizontal D-pad), DPAD_Y (vertical D-pad), X1 (left analog horizontal), Y1 (left analog vertical), X2 (right analog horizontal), Y2 (right analog vertical)Īnalog clicks: TL (left analog click), TR (right analog click) In the end, you'll have a list with all names and the corresponding XBOX buttons.

You must take note of their names to be able to map them properly later.

Do this for all your buttons and all your axis. This output tells me that this button is mapped with the name BTN_THUMB. Then I pressed the button corresponding to where the B button is on the XBOX controller, and the output was this:Įvent: time 1380985018.460841, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90002Įvent: time 1380985018.460841, type 1 (EV_KEY), code 289 ( BTN_THUMB), value 1 In this case, I pressed the button corresponding to where the A button is on the XBOX controller, and this button is mapped as BTN_THUMB2. To do so, while using evtest with the event associated to your controller (for example, # evtest /dev/input/event11), each time you press a button you'll receive a terminal output like this:Įvent: time 1380985017.964843, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90003Įvent: time 1380985017.964843, type 1 (EV_KEY), code 290 ( BTN_THUMB2), value 1 If you have any other controller, you must map it.

If you have a PS3 controller, you can skip this section and go stragth to section 5.
