Green Asia Gamepad
Last modified by David De La Harpe Golden on 2020/11/29 23:53
GreenAsia Inc. USB Gamepads
I have a couple of these old generic usb PlayStation 1/2 DualShock style controllers I picked up years ago, still going strong (mostly). USB identifies as "GreenAsia Inc. MaxFire Blaze 2", but lots of clone controllers use roughly the same internals I think. Unfortunately mine are missing some now-fashionable controller buttons (like menu/guide) and features, but they're alright.
xboxdrv remapping
If you want to remap this controller 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, hopefully obviously. You can fine more generic instructions on e.g. the Arch Wiki
xboxdrv -c evdev-greenasia.xboxdrv --silent
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 #