Skip to content
Venomalia edited this page Feb 29, 2024 · 6 revisions

These templates are intended to be used with the Device Request.

Templates - Example

these templates refer to the beginning of the devices ID, like evdev/0/Microsoft X-Box One S pad.
your device probably does not use all of these buttons, they can simply be skipped and missing ones can be added.

DInput

"`Button 1`" =
"`Button 2`" =
"`Button 3`" =
"`Button 4`" =
"`Button 5`" =
"`Button 6`" =
"`Button 7`" =
"`Button 8`" =
"`Button 9`" =
"`Button 10`" =
"`Button 11`" =
"`Button 12`" =
"`Button 13`" =
"`Button 14`" =
"`Button 15`" =
"`Hat 0 N`" =
"`Hat 0 E`" =
"`Hat 0 S`" =
"`Hat 0 W`" =
"`Axis Z+`" =
"`Axis Z-`" =
"`Axis X-`" =
"`Axis X+`" =
"`Axis Y+`" =
"`Axis Y-`" =
"`Axis Xr-`" =
"`Axis Xr+`" =
"`Axis Yr+`" =
"`Axis Yr-`" =

evdev

"SOUTH" =
"EAST" =
"WEST" =
"NORTH" =
"START" =
"SELECT" =
"MODE" =
"LEFT" =
"TL" =
"TR" =
"`TL2`" =
"`TR2`" =
"C" =
"Z" =
"`Axis 0+`" =
"`Axis 0-`" =
"`Axis 1+`" =
"`Axis 1-`" =
"THUMBL" =
"`Axis 3+`" =
"`Axis 3-` =
"`Axis 4+`" =
"`Axis 4-`" =
"THUMBR" =
"`Axis 6+`" =
"`Axis 6-`" =
"`Axis 7-`" =
"`Axis 7+`" =
"`Full Axis 2+`" =
"`Full Axis 5+`" =

SDL

"`Button E`" =
"`Button S`" =
"`Button W`" =
"`Button N`" =
"`Thumb L`" =
"`Shoulder L`" =
"`Trigger L`" =
"`Thumb R`": " =
"`Shoulder R`" =
"`Trigger R`" =
"`Hat 0 E`" =
"`Hat 0 N`" =
"`Hat 0 S`" =
"`Hat 0 W`" =
"Back": " =
"Start": " =
"Guide": " =
"`Misc 1`": " =
"`Misc 2`": " =
"`Paddle 1`" =
"`Paddle 2`" =
"`Paddle 3`" =
"`Paddle 4`" =
"`Left X-`" =
"`Left X+`" =
"`Left Y-`" =
"`Left Y+`" =
"`Right X-`" =
"`Right X+`" =
"`Right Y-`" =
"`Right Y+`" =
"`Full Axis 4+`" =
"`Full Axis 5+`" =

Example

evdev/0/Microsoft X-Box One S pad

"SOUTH" = Button A
"EAST" = Button B
"WEST" = Button X
"NORTH" = Button Y
"START" = Start
"SELECT" = Back
"MODE" = Guide
"TL" = Shoulder L
"TR" = Shoulder R
"`Axis 7-`" = D-pad UP
"`Axis 7+`" = D-pad Down
"`Axis 6+`" = D-pad Right
"`Axis 6-`" = D-pad Left
"`Axis 1+`" = Left Stick Down
"`Axis 1-`" = Left Stick UP
"`Axis 0+`" = Left Stick Right
"`Axis 0-`" = Left Stick Left
"THUMBL" = Thumb L
"`Axis 4+`" = Right Stick Down
"`Axis 4-`" = Right Stick UP
"`Axis 3+`" = Right Stick Right
"`Axis 3-` = Right Stick Left
"THUMBR" = Thumb R
"`Full Axis 2+`" = Trigger L
"`Full Axis 5+`" = Trigger R