-
Notifications
You must be signed in to change notification settings - Fork 1
/
controls.conf
346 lines (341 loc) · 12.8 KB
/
controls.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
up =
down =
left = Left,joy0Hat0Left,joy1Hat0Left
right = Right,joy0Hat0Right,joy1Hat0Right
pageUp = A
pageDown = B
letterUp = Up,joy0Hat0Up,joy1Hat0Up
letterDown = Down,joy0Hat0Down,joy1Hat0Down
nextPlaylist = P
addPlaylist = I
removePlaylist = O
random = R
select = Return,joy0Button0,joy1Button0
back = Escape,joy0Button1,joy1Button1
quit = Q
# Define controller analogue dead zone. Default (when not configured) is 3%.
# deadZone = 3
##############################################################################
# MOUSE CODES
###################### ######################################################
# Code # Description
###################### ######################################################
# mouseButtonLeft Left mouse click
# mouseButtonMiddle Middle mouse click
# mouseButtonRight Right mouse click
# mouseButtonX1 ?
# mouseButtonX2 ?
##############################################################################
# JOYSTICK/GAMEPAD CODES
###################### ######################################################
# Code # Description
###################### ######################################################
# X is joypad number (0 is first joystick/gamepad)
# joyXHatYLeftUp Y=hat number (0 is the first dpad) (example joy0Hat0Up)
# joyXHatYLeft
# joyXHatYLeftDown
# joyXHatYUp
# joyXHatYDown
# joyXHatYRightUp
# joyXHatYRight
# joyXHatYRightDown
# joyXButtonY Y is button number (0 is first button)
# Example: joy1button7 -> second joystick, 8th button
# Open up the gamepad control panel in windows or use
# "jstest" in linux
#
# joyXAxis0+ First POV stick, first axis positive direction
# (axis 0 is usually x)
# joyXAxis0- First POV stick, first axis positive direction
# (axis 0 is usually x)
# joyXAxis1+ First POV stick, second axis positive direction
# (axis 0 is usually y)
#joyXAxis1- First POV stick, second axis positive direction
# (axis 0 is usually y)
#
# joyXAxis2+ Second POV stick, first axis positive direction
# (axis 2 is usually x)
# joyXAxis2- Second POV stick, first axis positive direction
# (axis 2 is usually x)
# joyXAxis3+ Second POV stick, second axis positive direction
# (axis 3 is usually y)
# joyXAxis3- Second POV stick, second axis positive direction
# (axis 3 is usually y)
##############################################################################
# KEYBOARD CODES
###################### ######################################################
# Code # Description
###################### ######################################################
# "0"
# "1"
# "2"
# "3"
# "4"
# "5"
# "6"
# "7"
# "8"
# "9"
# "A"
# "AC Back" the Back key (application control keypad)
# "AC Bookmarks" the Bookmarks key (application control keypad)
# "AC Forward" the Forward key (application control keypad)
# "AC Home" the Home key (application control keypad)
# "AC Refresh" the Refresh key (application control keypad)
# "AC Search" the Search key (application control keypad)
# "AC Stop" the Stop key (application control keypad)
# "Again" the Again key (Redo)
# "AltErase" Erase-Eaze
# "'"
# "Application" the Application / Compose / Context Menu (Windows)
# key
# "AudioMute" the Mute volume key
# "AudioNext" the Next Track media key
# "AudioPlay" the Play media key
# "AudioPrev" the Previous Track media key
# "AudioStop" the Stop media key)
# "B"
# "\" Located at the lower left of the return key on ISO
# keyboards and at the right end of the QWERTY row
# on ANSI keyboards. Produces REVERSE SOLIDUS
# (backslash) and VERTICAL LINE in a US layout,
# REVERSE SOLIDUS and VERTICAL LINE in a UK Mac layout,
# NUMBER SIGN and TILDE in a UK Windows layout, DOLLAR
# SIGN and POUND SIGN in a Swiss German layout,
# NUMBER SIGN and APOSTROPHE in a German layout, GRAVE
# ACCENT and POUND SIGN in a French Mac layout, and
# ASTERISK and MICRO SIGN in a French Windows layout.
# "Backspace"
# "BrightnessDown" the Brightness Down key
# "BrightnessUp" the Brightness Up key
# "C"
# "Calculator" the Calculator key
# "Cancel"
# "CapsLock"
# "Clear"
# "Clear / Again"
# ","
# "Computer" the My Computer key
# "Copy"
# "CrSel"
# "CurrencySubUnit" the Currency Subunit key
# "CurrencyUnit" the Currency Unit key
# "Cut"
# "D"
# "DecimalSeparator" the Decimal Separator key
# "Delete"
# "DisplaySwitch" display mirroring/dual display switch, video mode
# switch
# "Down" the Down arrow key (navigation keypad)
# "E"
# "Eject" the Eject key)
# "End"
# "="
# "Escape" the Esc key)
# "Execute"
# "ExSel"
# "F"
# "F1"
# "F10"
# "F11"
# "F12"
# "F13"
# "F14"
# "F15"
# "F16"
# "F17"
# "F18"
# "F19"
# "F2"
# "F20"
# "F21"
# "F22"
# "F23"
# "F24"
# "F3"
# "F4"
# "F5"
# "F6"
# "F7"
# "F8"
# "F9"
# "Find"
# "G"
# "`" Located in the top left corner (on both ANSI and ISO
# keyboards). Produces GRAVE ACCENT and TILDE in a US
# Windows layout and in US and UK Mac layouts on ANSI
# keyboards, GRAVE ACCENT and NOT SIGN in a UK Windows
# layout, SECTION SIGN and PLUS-MINUS SIGN in US and
# UK Mac layouts on ISO keyboards, SECTION SIGN and
# DEGREE SIGN in a Swiss German layout (Mac: only on
# ISO keyboards), CIRCUMFLEX ACCENT and DEGREE SIGN
# in a German layout (Mac: only on ISO keyboards),
# SUPERSCRIPT TWO and TILDE in a French Windows layout,
# COMMERCIAL AT and NUMBER SIGN in a French Mac layout
# on ISO keyboards, and LESS-THAN SIGN and GREATER-THAN
# SIGN in a Swiss German, German, or French Mac layout
# on ANSI keyboards.
# "H"
# "Help"
# "Home"
# "I"
# "Insert" insert on PC, help on some Mac keyboards (but does
# send code 73, not 117)
# "J"
# "K"
# "KBDIllumDown" the Keyboard Illumination Down key
# "KBDIllumToggle" the Keyboard Illumination Toggle key
# "KBDIllumUp" the Keyboard Illumination Up key
# "Keypad 0" the 0 key (numeric keypad)
# "Keypad 00" the 00 key (numeric keypad)
# "Keypad 000" the 000 key (numeric keypad)
# "Keypad 1" the 1 key (numeric keypad)
# "Keypad 2" the 2 key (numeric keypad)
# "Keypad 3" the 3 key (numeric keypad)
# "Keypad 4" the 4 key (numeric keypad)
# "Keypad 5" the 5 key (numeric keypad)
# "Keypad 6" the 6 key (numeric keypad)
# "Keypad 7" the 7 key (numeric keypad)
# "Keypad 8" the 8 key (numeric keypad)
# "Keypad 9" the 9 key (numeric keypad)
# "Keypad A" the A key (numeric keypad)
# "Keypad &" the & key (numeric keypad)
# "Keypad @" the @ key (numeric keypad)
# "Keypad B" the B key (numeric keypad)
# "Keypad Backspace" the Backspace key (numeric keypad)
# "Keypad Binary" the Binary key (numeric keypad)
# "Keypad C" the C key (numeric keypad)
# "Keypad Clear" the Clear key (numeric keypad)
# "Keypad ClearEntry" the Clear Entry key (numeric keypad)
# "Keypad :" the : key (numeric keypad)
# "Keypad ," the Comma key (numeric keypad)
# "Keypad D" the D key (numeric keypad)
# "Keypad &&" the && key (numeric keypad)
# "Keypad ||" the || key (numeric keypad)
# "Keypad Decimal" the Decimal key (numeric keypad)
# "Keypad /" the / key (numeric keypad)
# "Keypad E" the E key (numeric keypad)
# "Keypad Enter" the Enter key (numeric keypad)
# "Keypad =" the = key (numeric keypad)
# "Keypad = (AS400)" the Equals AS400 key (numeric keypad)
# "Keypad !" the ! key (numeric keypad)
# "Keypad F" the F key (numeric keypad)
# "Keypad >" the Greater key (numeric keypad)
# "Keypad #" the # key (numeric keypad)
# "Keypad Hexadecimal" the Hexadecimal key (numeric keypad)
# "Keypad {" the Left Brace key (numeric keypad)
# "Keypad (" the Left Parenthesis key (numeric keypad)
# "Keypad <" the Less key (numeric keypad)
# "Keypad MemAdd" the Mem Add key (numeric keypad)
# "Keypad MemClear" the Mem Clear key (numeric keypad)
# "Keypad MemDivide" the Mem Divide key (numeric keypad)
# "Keypad MemMultiply" the Mem Multiply key (numeric keypad)
# "Keypad MemRecall" the Mem Recall key (numeric keypad)
# "Keypad MemStore" the Mem Store key (numeric keypad)
# "Keypad MemSubtract" the Mem Subtract key (numeric keypad)
# "Keypad -" the - key (numeric keypad)
# "Keypad \*" the \* key (numeric keypad)
# "Keypad Octal" the Octal key (numeric keypad)
# "Keypad %" the Percent key (numeric keypad)
# "Keypad ." the . key (numeric keypad)
# "Keypad +" the + key (numeric keypad)
# "Keypad +/-" the +/- key (numeric keypad)
# "Keypad ^" the Power key (numeric keypad)
# "Keypad }" the Right Brace key (numeric keypad)
# "Keypad )" the Right Parenthesis key (numeric keypad)
# "Keypad Space" the Space key (numeric keypad)
# "Keypad Tab" the Tab key (numeric keypad)
# "Keypad \|" the \| key (numeric keypad)
# "Keypad XOR" the XOR key (numeric keypad)
# "L"
# "Left Alt" alt, option
# "Left Ctrl"
# "Left" the Left arrow key (navigation keypad)
# "["
# "Left GUI" windows, command (apple), meta
# "Left Shift"
# "M"
# "Mail" the Mail/eMail key
# "MediaSelect" the Media Select key
# "Menu"
# "-"
# "ModeSwitch" I'm not sure if this is really not covered by any of
# the above, but since there's a special KMOD_MODE for
# it I'm adding it here
# "Mute"
# "N"
# "Numlock" the Num Lock key (PC) / the Clear key (Mac)
# "O"
# "Oper"
# "Out"
# "P"
# "PageDown"
# "PageUp"
# "Paste"
# "Pause" the Pause / Break key
# "."
# "Power" The USB document says this is a status flag, not a
# physical key - but some Mac keyboards do have a
# power key.
# "PrintScreen"
# "Prior"
# "Q"
# "R"
# "Right Alt" alt gr, option
# "Right Ctrl"
# "Return" the Enter key (main keyboard)
# "Return"
# "Right GUI" windows, command (apple), meta
# "Right" the Right arrow key (navigation keypad)
# "]"
# "Right Shift"
# "S"
# "ScrollLock"
# "Select"
# ";"
# "Separator"
# "/"
# "Sleep" the Sleep key
# "Space" the Space Bar key(s)
# "Stop"
# "SysReq" the SysReq key
# "T"
# "Tab" the Tab key
# "ThousandsSeparator" the Thousands Separator key
# "U"
# "Undo"
# "Up" the Up arrow key (navigation keypad)
# "V"
# "VolumeDown"
# "VolumeUp"
# "W"
# "WWW" the WWW/World Wide Web key
# "X"
# "Y"
# "Z"
# "#" ISO USB keyboards actually use this code instead of
# 49 for the same key, but all OSes I've seen treat
# the two codes identically. So, as an implementor,
# unless your keyboard generates both of those codes
# and your OS treats them differently, you should
# generate SDL_SCANCODE_BACKSLASH instead of this
# code. As a user, you should not rely on this code
# becauseSDL will never generate it with most (all?)
# keyboards.
# "&"
# "*"
# "@"
# "^"
# ":"
# "$"
# "!"
# ">"
# "#"
# "("
# "<"
# "%"
# "+"
# "?"
# ")"
# "_"
# These codes were taken from https://wiki.libsdl.org/SDL_Keycode