Advertisement
Guest User

.switch_keys

a guest
Nov 19th, 2020
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. Switch Mappings https://github.com/capsterx-switch/switch-utils
  2.  
  3. # at beginning is a comment
  4. all lines are
  5. Key=VALUE
  6.  
  7. Key is a switch key. You can use any key as a modifier key multiple keys are separated by -
  8. VALUE is a keyboard key, currently you can use optional modifiers ALT, SHIFT, CTRL (separated by -) and a keyboard key
  9.  
  10. switch keys are
  11. A B X Y LSTICK RSTICK L R ZL ZR PLUS MINUS
  12. DUP DLEFT DRIGHT DDOWN
  13. LSTICK_LEFT LSTICK_RIGHT LSTICK_UP LSTICK_DOWN
  14. RSTICK_LEFT RSTICK_UP RSTICK_RIGHT RSTICK_DOWN
  15. SL_LEFT SR_LEFT SL_RIGHT SR_RIGHT (I have not tested these as I dont use the controller in this mode)
  16.  
  17. virtual settings are
  18. TOUCH_MOUSE=TRUE -- map touch screen into mouse events (dont use for RTCW, it uses events that dont work right and I have coded a touch events that work)
  19. TOUCH_MOUSE_ABS=TRUE -- use the sdl touch screen to mouse events, works for RTCW but you have to drag finger down on touch pad to use mouse
  20. DPAD_ARROWS=true -- alias for DUP=UP, DDOWN=DOWN, DLEFT=LEFT, DRIGHT=RIGHT
  21. LSTICK_ARROWS=TRUE -- alias for LSTICK_UP=UP, LSTICK_DOWN=DOWN, LSTICK_LEFT=LEFT, LSTICK_RIGHT=RIGHT
  22. RSTICK_MOUSE=TRUE -- map right stick into mouse events
  23. DOUBLE_TOUCK_KEYBOARD=TRUE -- two finger click brings up virtual keyboard, any input is sent both as a SDL_TEXTINPUT and each char
  24.  
  25.  
  26. VALUE: keyboard
  27. any single char
  28. BACKSPACE TAB ENTER PAUSE ESC SPACE DEL
  29. KP0 KP1 KP2 KP3 KP4 KP5 KP6 KP7 KP8 KP9 KP0 KP.
  30. KP/ KP* KP- KP+
  31. KP_ENTER UP DOWN RIGHT LEFT INSERT HOME END PAGEUP
  32. PAGEDOWN
  33. F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15
  34.  
  35. tilda might not map right, I used SDL_SCANCODE_GRAVE which may not be right.
  36.  
  37. Examples: using R and L as "meta keys"
  38. R-A=W
  39. R-B=S
  40. R-X=D
  41. R-Y=F
  42. L-A=I
  43. L-B=J
  44. L-X=K
  45. L-Y=L
  46.  
  47. Using a key (or multiple keys) to be a modified sdl key
  48. A=ALT-X
  49. B=CTRL-Y
  50. X=SHIFT-Z
  51. Y=ALT-CTRL-SHIFT=I
  52.  
  53. Mapping a virtual keyboard key (note, keyboard needs to be solo, it's a virtual modifier)
  54. R=KEYBOARD
  55.  
  56. Currently you cannot send multiple non-modifier keys, but there is no reason why it could not be done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement