GreenAsiaGamepad
Version 1.1 by David De La Harpe Golden on 2020/11/29 21:57
Remapping with xboxdrv
I have a couple of these old generic usb PlayStation 1/2 DualShock style controllers I picked up years ago, quite robust and still going strong. Unfortunately missing some modern controller buttons (like menu/guide) and features, but if you want to remap it with xboxdrv to pseudo-xbox360 for compatibility with certain games on Linux, well the following works nicely for me. Other controllers may need different mappings, obviously.
xboxdrv -c evdev-greenasia.xboxdrv
where evdev-greenasia.xboxdrv is:
[xboxdrv]
evdev = /dev/input/by-id/usb-GreenAsia_Inc._USB_Joystick-event-joystick
evdev-debug = false
evdev-grab = true
mimic-xpad = true
[axismap]
# these are inverted relative to xbox, shrug
-Y1=Y1
-Y2=Y2
[evdev-absmap]
ABS_HAT0X = DPAD_X
ABS_HAT0Y = DPAD_Y
ABS_X = X1
ABS_Y = Y1
ABS_RZ = X2
ABS_Z = Y2
[evdev-keymap]
BTN_TRIGGER = X
BTN_THUMB = Y
BTN_THUMB2 = A
BTN_TOP = B
BTN_TOP2 = LB
BTN_PINKIE = LT
BTN_BASE = RB
BTN_BASE2 = RT
BTN_BASE3 = BACK
BTN_BASE4 = START
BTN_BASE5 = TL
BTN_BASE6 = TR
# EOF #