Skip to content

Instantly share code, notes, and snippets.

@Ryochan7
Created August 12, 2015 22:42
Show Gist options
  • Save Ryochan7/5758f88a9a9f75760972 to your computer and use it in GitHub Desktop.
Save Ryochan7/5758f88a9a9f75760972 to your computer and use it in GitHub Desktop.
xboxdrv 360 gamepad evdev assist
[xboxdrv]
# Read from evdev device but don't grab for exclusive access. antimicro needs access
# to original device. Use chmod on device after starting xboxdrv and antimicro to hide it.
evdev = /dev/input/event6
evdev-grab = false
# A lot of games with gamepad support expect xpad device.
mimic-xpad = true
[axismap]
# Invert two axes.
-Y1 = Y1
-Y2 = Y2
[evdev-absmap]
ABS_X = X1
ABS_Y = Y1
ABS_Z = LT
ABS_RX = X2
ABS_RY = Y2
ABS_RZ = RT
ABS_HAT0X = DPAD_X
ABS_HAT0Y = DPAD_Y
[evdev-keymap]
BTN_START = start
BTN_MODE = guide
BTN_SELECT = back
BTN_A = A
BTN_B = B
BTN_X = X
BTN_Y = Y
BTN_TL = LB
BTN_TR = RB
BTN_THUMBL = TL
BTN_THUMBR = TR
[ui-axismap]
# Make right stick axes always register 0. Otherwise, blanking axes assignment would cause
# each axis to register around -32,768.
X2^const:0 = ABS_RX
Y2^const:0 = ABS_RY
# Only needed for Shadow Warrior 2013 radial menu. Make a second set in antimicro
# profile to blank right stick mapping while left bumper is held.
LB+X2 = ABS_RX
LB+Y2 = ABS_RY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment