Есть один старый геймпад, который не поддерживает xinput - logitech cordless rumplepad 2. Вроде настроил xboxdrv на эмуляцию геймпада от xbox 360, запускаю так:
$ cat logitech_cordless_rumblepad2.xboxdrv
[xboxdrv]
[evdev-keymap]
# left hand - logitech cordless rumblepad 2 buttons and axises
# right hand - xbox360 buttons and axises
# button 1
BTN_A=X
# button 2
BTN_B=A
# button 3
BTN_C=B
# button 4
BTN_X=Y
# button 5
BTN_Y=LB
# button 6
BTN_Z=RB
# button 7
BTN_TL=LT
# button 8
BTN_TR=RT
# button 9
BTN_TL2=Back
# button 10
BTN_TR2=Start
# left analog stick press
BTN_SELECT=TR
# right analog stick press
BTN_START=TL
[evdev-absmap]
# left hand - logitech cordless rumblepad 2 buttons and axises
# right hand - xbox360 buttons and axises
# dpad up/down axis
ABS_HAT0Y=DPAD_Y
# dpad left/right axis
ABS_HAT0X=DPAD_X
# left stick up/down (up = 0, down = 255)
ABS_Y=Y1
# left stick left/right (left = 0, right = 255)
ABS_X=X1
# right stick up/down (up = 0, down = 255)
ABS_RZ=Y2
# right stick left/right (left = 0, right = 255)
ABS_Z=X2
[axismap]
# change negative values to positive and vice-versa (analog stick coordinates are inverted by default)
-Y1=Y1
-Y2=Y2
sudo xboxdrv --evdev /dev/input/event5 -c logitech_cordless_rumblepad2.xboxdrv --silent
Game..Math..Graphic..Action..File..Resource..Interaction..3D..Particle..Misc..DS..Sound..Physics..Gamepad..GAMEPAD: Initialising Ubuntu support
GAMEPAD: 4 axis values (last) at 0x8a564f0
GAMEPAD: 4 axis values (last) at 0x8a56820
GAMEPAD: Enumerating 3
GAMEPAD: device name Logitech Logitech Cordless RumblePad 2
GAMEPAD: buttons - 12, axes - 6
GAMEPAD: 4 axis values (last) at 0x8a56dd0
GAMEPAD: Enumerating 4
GAMEPAD: device name Microsoft X-Box 360 pad
GAMEPAD: buttons - 11, axes - 8
GAMEPAD: 4 axis values (last) at 0x8a69688
Buffers..Networking..Shaders..Steam_Init
Как это поправить?