Skip to content

Instantly share code, notes, and snippets.

@Yrds
Last active Jan 20, 2017
Embed
What would you like to do?
[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