Skip to content

Instantly share code, notes, and snippets.

@kleo
Created January 26, 2022 11:30
Show Gist options
  • Select an option

  • Save kleo/776d4f79d534b64c72f317bf7adcb47c to your computer and use it in GitHub Desktop.

Select an option

Save kleo/776d4f79d534b64c72f317bf7adcb47c to your computer and use it in GitHub Desktop.
getevent keys (combined joycons)
X - BTN_NORTH
Y - BTN_WEST
A - BTN_EAST
B - BTN_GAMEPAD
plus - BTN_START
minus - BTN_SELECT
L - BTN_TL
R - BTN_TR
ZL - ABS_Z
ZR - ABS_RZ
UP - ABS_HAT0Y - ffffffff
DOWN - ABS_HAT0Y - 00000001
LEFT - ABS_HAT0X - ffffffff
RIGHT - ABS_HAT0X - 00000001
Capture - BTN_Z (modified)
Home - BTN_MODE (modified)
joystick middle L - BTN_THUMBL
joystick middle R - BTN_THUMBR
combined bluetooth
left joycon
SL - not working
SR - ABS_RZ
right joycon
SL - not working
SR - ABS_Z
---
capture button
BUTTON_3
EV_KEY BTN_Z UP
EV_SYN SYN_REPORT 00000000
EV_KEY BTN_Z DOWN
EV_SYN SYN_REPORT 00000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment