Skip to content

Instantly share code, notes, and snippets.

@shalzz
Last active January 22, 2021 06:59
Show Gist options
  • Save shalzz/fa3d74e161fe231c5284387e241ab08c to your computer and use it in GitHub Desktop.
Save shalzz/fa3d74e161fe231c5284387e241ab08c to your computer and use it in GitHub Desktop.
Button mapping config of Motorola gamepad for use with xboxdrv. Example use: `xboxdrv --evdev /dev/input/event16 --config ~/.config/xboxdrv/motogamepad.conf`
# Motorola Android TV gamepad Config
# Model SZ-A10008
# Hold M+X buttons to pair as gamepad
[xboxdrv]
evdev-debug = false
evdev-grab = true
rumble = false
mimic-xpad = true
[evdev-absmap]
ABS_HAT0X = dpad_x
ABS_HAT0Y = dpad_y
ABS_X = X1
ABS_Y = Y1
ABS_Z = X2
ABS_RZ = Y2
[axismap]
-Y1 = Y1
-Y2 = Y2
[evdev-keymap]
BTN_A=a
BTN_B=b
BTN_Y=y
BTN_X=x
BTN_TR=rb
BTN_TL=lb
BTN_TR2=rt
BTN_TL2=lt
BTN_THUMBL=tl
BTN_THUMBR=tr
BTN_START=start
BTN_SELECT=back
BTN_MODE = guide
@shalzz
Copy link
Author

shalzz commented Jan 22, 2021

Button mapping config of Motorola gamepad for use with xboxdrv.
Example use: xboxdrv --evdev /dev/input/event16 --config ~/.config/xboxdrv/motogamepad.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment