Skip to content

Instantly share code, notes, and snippets.

@zany130
Created February 27, 2020 05:42
Show Gist options
  • Save zany130/274405a20b9a8f3f28bf2b575e795bee to your computer and use it in GitHub Desktop.
Save zany130/274405a20b9a8f3f28bf2b575e795bee to your computer and use it in GitHub Desktop.
cross = type 1 (EV_KEY), code 305 (BTN_EAST), value 1
square = type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
triagle = type 1 (EV_KEY), code 307 (BTN_NORTH), value 1
circle = type 1 (EV_KEY), code 306 (BTN_C), value
R1 = type 1 (EV_KEY), code 309 (BTN_Z), value 1
L1 = type 1 (EV_KEY), code 308 (BTN_WEST), value 1
Start = type 1 (EV_KEY), code 313 (BTN_TR2), value 1
TouchPad = type 1 (EV_KEY), code 317 (BTN_THUMBL), value 1
Share = type 1 (EV_KEY), code 312 (BTN_TL2), value 1
Home = type 1 (EV_KEY), code 316 (BTN_MODE), value 1
L3 = type 1 (EV_KEY), code 314 (BTN_SELECT), value 1
R3 = type 1 (EV_KEY), code 315 (BTN_START), value 1
Dpad up = type 3 (EV_ABS), code 17 (ABS_HAT0Y), value -1
Dpad left =type 3 (EV_ABS), code 16 (ABS_HAT0X), value -1
dpad down = type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 1
dpad right = type 3 (EV_ABS), code 16 (ABS_HAT0X), value 1
leftx= type 3 (EV_ABS), code 0 (ABS_X), value 132
lefty = type 3 (EV_ABS), code 1 (ABS_Y), value 128
rightx = type 3 (EV_ABS), code 2 (ABS_Z), value 255
righty = type 3 (EV_ABS), code 5 (ABS_RZ), value 0
L2 = type 3 (EV_ABS), code 3 (ABS_RX), value 200
R2 = type 3 (EV_ABS), code 4 (ABS_RY), value 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment