Skip to content

Instantly share code, notes, and snippets.

@Magoninho
Created July 16, 2023 22:54
Show Gist options
  • Save Magoninho/cad9715b9cde466094f97ec80d8073d9 to your computer and use it in GitHub Desktop.
Save Magoninho/cad9715b9cde466094f97ec80d8073d9 to your computer and use it in GitHub Desktop.

https://wiki.archlinux.org/title/Gamepad#Mimic_Xbox_360_controller

xboxdrv --evdev /dev/input/event* --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RZ=y2,ABS_Z=x2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y --evdev-keymap BTN_THUMB2=a,BTN_TOP=x,BTN_TRIGGER=y,BTN_THUMB=b,BTN_TOP2=lb,BTN_BASE=lt,BTN_PINKIE=rb,BTN_BASE2=rt,BTN_BASE3=back,BTN_BASE4=start,BTN_BASE5=tl,BTN_BASE6=tr --mimic-xpad
  • (*) put the event number use evtest to find your controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment