Skip to content

Instantly share code, notes, and snippets.

@Yrds
Last active January 20, 2017 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yrds/c67d635d92d5986af539fbfc5d78c12e to your computer and use it in GitHub Desktop.
Save Yrds/c67d635d92d5986af539fbfc5d78c12e to your computer and use it in GitHub Desktop.
[xboxdrv]
dpad-as-button=true
trigger-as-button=true #If your "Trigger" is a button
#evdev = /dev/input/your-device-event
evdev-grab=true
mimic-xpad=true
# Workaround fix to inverted axis from evdev devices emulating X360 gamepads
[axismap]
-Y1=Y1
-Y2=Y2
[evdev-keymap]
BTN_THUMB2=A
BTN_THUMB=B
BTN_TOP=X
BTN_TRIGGER=Y
[evdev-keymap]
BTN_TOP2=LB
BTN_PINKIE=RB
BTN_BASE=LT
BTN_BASE2=RT
[evdev-keymap]
BTN_BASE5=TL
BTN_BASE6=TR
BTN_BASE4=START
BTN_BASE3=SELECT
[evdev-absmap]
ABS_X=X1
ABS_Y=Y1
ABS_Z=X2
ABS_RZ=Y2
[evdev-absmap]
ABS_HAT0X=DPAD_X
ABS_HAT0Y=DPAD_Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment