-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDL_keycode.fth
283 lines (279 loc) · 8.54 KB
/
SDL_keycode.fth
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
\ This file has been generated using SWIG and fsi,
\ and is already platform dependent, search for the corresponding
\ fsi-file to compile it where no one has compiled it before ;)
\ Forth systems have their own own dynamic loader and don't need addional C-Code.
\ That's why this file will just print normal forth-code once compiled
\ and can be used directly with include or require.
\ As all comments are stripped during the compilation, please
\ insert the copyright notice of the original file here.
\ ----===< prefix >===-----
c-library sdl_keycode
s" SDL2" add-lib
\c #include <SDL2/SDL_keycode.h>
\ ----===< int constants >===-----
#1073741824 constant SDLK_SCANCODE_MASK
\ --------===< enums >===---------
#0 constant SDLK_UNKNOWN
#13 constant SDLK_RETURN
#27 constant SDLK_ESCAPE
#8 constant SDLK_BACKSPACE
#9 constant SDLK_TAB
#32 constant SDLK_SPACE
#33 constant SDLK_EXCLAIM
#34 constant SDLK_QUOTEDBL
#35 constant SDLK_HASH
#37 constant SDLK_PERCENT
#36 constant SDLK_DOLLAR
#38 constant SDLK_AMPERSAND
#39 constant SDLK_QUOTE
#40 constant SDLK_LEFTPAREN
#41 constant SDLK_RIGHTPAREN
#42 constant SDLK_ASTERISK
#43 constant SDLK_PLUS
#44 constant SDLK_COMMA
#45 constant SDLK_MINUS
#46 constant SDLK_PERIOD
#47 constant SDLK_SLASH
#48 constant SDLK_0
#49 constant SDLK_1
#50 constant SDLK_2
#51 constant SDLK_3
#52 constant SDLK_4
#53 constant SDLK_5
#54 constant SDLK_6
#55 constant SDLK_7
#56 constant SDLK_8
#57 constant SDLK_9
#58 constant SDLK_COLON
#59 constant SDLK_SEMICOLON
#60 constant SDLK_LESS
#61 constant SDLK_EQUALS
#62 constant SDLK_GREATER
#63 constant SDLK_QUESTION
#64 constant SDLK_AT
#91 constant SDLK_LEFTBRACKET
#92 constant SDLK_BACKSLASH
#93 constant SDLK_RIGHTBRACKET
#94 constant SDLK_CARET
#95 constant SDLK_UNDERSCORE
#96 constant SDLK_BACKQUOTE
#97 constant SDLK_a
#98 constant SDLK_b
#99 constant SDLK_c
#100 constant SDLK_d
#101 constant SDLK_e
#102 constant SDLK_f
#103 constant SDLK_g
#104 constant SDLK_h
#105 constant SDLK_i
#106 constant SDLK_j
#107 constant SDLK_k
#108 constant SDLK_l
#109 constant SDLK_m
#110 constant SDLK_n
#111 constant SDLK_o
#112 constant SDLK_p
#113 constant SDLK_q
#114 constant SDLK_r
#115 constant SDLK_s
#116 constant SDLK_t
#117 constant SDLK_u
#118 constant SDLK_v
#119 constant SDLK_w
#120 constant SDLK_x
#121 constant SDLK_y
#122 constant SDLK_z
#1073741881 constant SDLK_CAPSLOCK
#1073741882 constant SDLK_F1
#1073741883 constant SDLK_F2
#1073741884 constant SDLK_F3
#1073741885 constant SDLK_F4
#1073741886 constant SDLK_F5
#1073741887 constant SDLK_F6
#1073741888 constant SDLK_F7
#1073741889 constant SDLK_F8
#1073741890 constant SDLK_F9
#1073741891 constant SDLK_F10
#1073741892 constant SDLK_F11
#1073741893 constant SDLK_F12
#1073741894 constant SDLK_PRINTSCREEN
#1073741895 constant SDLK_SCROLLLOCK
#1073741896 constant SDLK_PAUSE
#1073741897 constant SDLK_INSERT
#1073741898 constant SDLK_HOME
#1073741899 constant SDLK_PAGEUP
#127 constant SDLK_DELETE
#1073741901 constant SDLK_END
#1073741902 constant SDLK_PAGEDOWN
#1073741903 constant SDLK_RIGHT
#1073741904 constant SDLK_LEFT
#1073741905 constant SDLK_DOWN
#1073741906 constant SDLK_UP
#1073741907 constant SDLK_NUMLOCKCLEAR
#1073741908 constant SDLK_KP_DIVIDE
#1073741909 constant SDLK_KP_MULTIPLY
#1073741910 constant SDLK_KP_MINUS
#1073741911 constant SDLK_KP_PLUS
#1073741912 constant SDLK_KP_ENTER
#1073741913 constant SDLK_KP_1
#1073741914 constant SDLK_KP_2
#1073741915 constant SDLK_KP_3
#1073741916 constant SDLK_KP_4
#1073741917 constant SDLK_KP_5
#1073741918 constant SDLK_KP_6
#1073741919 constant SDLK_KP_7
#1073741920 constant SDLK_KP_8
#1073741921 constant SDLK_KP_9
#1073741922 constant SDLK_KP_0
#1073741923 constant SDLK_KP_PERIOD
#1073741925 constant SDLK_APPLICATION
#1073741926 constant SDLK_POWER
#1073741927 constant SDLK_KP_EQUALS
#1073741928 constant SDLK_F13
#1073741929 constant SDLK_F14
#1073741930 constant SDLK_F15
#1073741931 constant SDLK_F16
#1073741932 constant SDLK_F17
#1073741933 constant SDLK_F18
#1073741934 constant SDLK_F19
#1073741935 constant SDLK_F20
#1073741936 constant SDLK_F21
#1073741937 constant SDLK_F22
#1073741938 constant SDLK_F23
#1073741939 constant SDLK_F24
#1073741940 constant SDLK_EXECUTE
#1073741941 constant SDLK_HELP
#1073741942 constant SDLK_MENU
#1073741943 constant SDLK_SELECT
#1073741944 constant SDLK_STOP
#1073741945 constant SDLK_AGAIN
#1073741946 constant SDLK_UNDO
#1073741947 constant SDLK_CUT
#1073741948 constant SDLK_COPY
#1073741949 constant SDLK_PASTE
#1073741950 constant SDLK_FIND
#1073741951 constant SDLK_MUTE
#1073741952 constant SDLK_VOLUMEUP
#1073741953 constant SDLK_VOLUMEDOWN
#1073741957 constant SDLK_KP_COMMA
#1073741958 constant SDLK_KP_EQUALSAS400
#1073741977 constant SDLK_ALTERASE
#1073741978 constant SDLK_SYSREQ
#1073741979 constant SDLK_CANCEL
#1073741980 constant SDLK_CLEAR
#1073741981 constant SDLK_PRIOR
#1073741982 constant SDLK_RETURN2
#1073741983 constant SDLK_SEPARATOR
#1073741984 constant SDLK_OUT
#1073741985 constant SDLK_OPER
#1073741986 constant SDLK_CLEARAGAIN
#1073741987 constant SDLK_CRSEL
#1073741988 constant SDLK_EXSEL
#1073742000 constant SDLK_KP_00
#1073742001 constant SDLK_KP_000
#1073742002 constant SDLK_THOUSANDSSEPARATOR
#1073742003 constant SDLK_DECIMALSEPARATOR
#1073742004 constant SDLK_CURRENCYUNIT
#1073742005 constant SDLK_CURRENCYSUBUNIT
#1073742006 constant SDLK_KP_LEFTPAREN
#1073742007 constant SDLK_KP_RIGHTPAREN
#1073742008 constant SDLK_KP_LEFTBRACE
#1073742009 constant SDLK_KP_RIGHTBRACE
#1073742010 constant SDLK_KP_TAB
#1073742011 constant SDLK_KP_BACKSPACE
#1073742012 constant SDLK_KP_A
#1073742013 constant SDLK_KP_B
#1073742014 constant SDLK_KP_C
#1073742015 constant SDLK_KP_D
#1073742016 constant SDLK_KP_E
#1073742017 constant SDLK_KP_F
#1073742018 constant SDLK_KP_XOR
#1073742019 constant SDLK_KP_POWER
#1073742020 constant SDLK_KP_PERCENT
#1073742021 constant SDLK_KP_LESS
#1073742022 constant SDLK_KP_GREATER
#1073742023 constant SDLK_KP_AMPERSAND
#1073742024 constant SDLK_KP_DBLAMPERSAND
#1073742025 constant SDLK_KP_VERTICALBAR
#1073742026 constant SDLK_KP_DBLVERTICALBAR
#1073742027 constant SDLK_KP_COLON
#1073742028 constant SDLK_KP_HASH
#1073742029 constant SDLK_KP_SPACE
#1073742030 constant SDLK_KP_AT
#1073742031 constant SDLK_KP_EXCLAM
#1073742032 constant SDLK_KP_MEMSTORE
#1073742033 constant SDLK_KP_MEMRECALL
#1073742034 constant SDLK_KP_MEMCLEAR
#1073742035 constant SDLK_KP_MEMADD
#1073742036 constant SDLK_KP_MEMSUBTRACT
#1073742037 constant SDLK_KP_MEMMULTIPLY
#1073742038 constant SDLK_KP_MEMDIVIDE
#1073742039 constant SDLK_KP_PLUSMINUS
#1073742040 constant SDLK_KP_CLEAR
#1073742041 constant SDLK_KP_CLEARENTRY
#1073742042 constant SDLK_KP_BINARY
#1073742043 constant SDLK_KP_OCTAL
#1073742044 constant SDLK_KP_DECIMAL
#1073742045 constant SDLK_KP_HEXADECIMAL
#1073742048 constant SDLK_LCTRL
#1073742049 constant SDLK_LSHIFT
#1073742050 constant SDLK_LALT
#1073742051 constant SDLK_LGUI
#1073742052 constant SDLK_RCTRL
#1073742053 constant SDLK_RSHIFT
#1073742054 constant SDLK_RALT
#1073742055 constant SDLK_RGUI
#1073742081 constant SDLK_MODE
#1073742082 constant SDLK_AUDIONEXT
#1073742083 constant SDLK_AUDIOPREV
#1073742084 constant SDLK_AUDIOSTOP
#1073742085 constant SDLK_AUDIOPLAY
#1073742086 constant SDLK_AUDIOMUTE
#1073742087 constant SDLK_MEDIASELECT
#1073742088 constant SDLK_WWW
#1073742089 constant SDLK_MAIL
#1073742090 constant SDLK_CALCULATOR
#1073742091 constant SDLK_COMPUTER
#1073742092 constant SDLK_AC_SEARCH
#1073742093 constant SDLK_AC_HOME
#1073742094 constant SDLK_AC_BACK
#1073742095 constant SDLK_AC_FORWARD
#1073742096 constant SDLK_AC_STOP
#1073742097 constant SDLK_AC_REFRESH
#1073742098 constant SDLK_AC_BOOKMARKS
#1073742099 constant SDLK_BRIGHTNESSDOWN
#1073742100 constant SDLK_BRIGHTNESSUP
#1073742101 constant SDLK_DISPLAYSWITCH
#1073742102 constant SDLK_KBDILLUMTOGGLE
#1073742103 constant SDLK_KBDILLUMDOWN
#1073742104 constant SDLK_KBDILLUMUP
#1073742105 constant SDLK_EJECT
#1073742106 constant SDLK_SLEEP
#1073742107 constant SDLK_APP1
#1073742108 constant SDLK_APP2
#1073742109 constant SDLK_AUDIOREWIND
#1073742110 constant SDLK_AUDIOFASTFORWARD
#1073742111 constant SDLK_SOFTLEFT
#1073742112 constant SDLK_SOFTRIGHT
#1073742113 constant SDLK_CALL
#1073742114 constant SDLK_ENDCALL
#0 constant KMOD_NONE
#1 constant KMOD_LSHIFT
#2 constant KMOD_RSHIFT
#64 constant KMOD_LCTRL
#128 constant KMOD_RCTRL
#256 constant KMOD_LALT
#512 constant KMOD_RALT
#1024 constant KMOD_LGUI
#2048 constant KMOD_RGUI
#4096 constant KMOD_NUM
#8192 constant KMOD_CAPS
#16384 constant KMOD_MODE
#32768 constant KMOD_SCROLL
#192 constant KMOD_CTRL
#3 constant KMOD_SHIFT
#768 constant KMOD_ALT
#3072 constant KMOD_GUI
#32768 constant KMOD_RESERVED
\ ----===< postfix >===-----
end-c-library