1#ifndef KORE_INPUT_KEYBOARD_HEADER
2#define KORE_INPUT_KEYBOARD_HEADER
14#define KORE_KEY_UNKNOWN 0
15#define KORE_KEY_BACK 1
16#define KORE_KEY_CANCEL 3
17#define KORE_KEY_HELP 6
18#define KORE_KEY_BACKSPACE 8
20#define KORE_KEY_CLEAR 12
21#define KORE_KEY_RETURN 13
22#define KORE_KEY_SHIFT 16
23#define KORE_KEY_CONTROL 17
24#define KORE_KEY_ALT 18
25#define KORE_KEY_PAUSE 19
26#define KORE_KEY_CAPS_LOCK 20
27#define KORE_KEY_KANA 21
28#define KORE_KEY_HANGUL 21
29#define KORE_KEY_EISU 22
30#define KORE_KEY_JUNJA 23
31#define KORE_KEY_FINAL 24
32#define KORE_KEY_HANJA 25
33#define KORE_KEY_KANJI 25
34#define KORE_KEY_ESCAPE 27
35#define KORE_KEY_CONVERT 28
36#define KORE_KEY_NON_CONVERT 29
37#define KORE_KEY_ACCEPT 30
38#define KORE_KEY_MODE_CHANGE 31
39#define KORE_KEY_SPACE 32
40#define KORE_KEY_PAGE_UP 33
41#define KORE_KEY_PAGE_DOWN 34
42#define KORE_KEY_END 35
43#define KORE_KEY_HOME 36
44#define KORE_KEY_LEFT 37
46#define KORE_KEY_RIGHT 39
47#define KORE_KEY_DOWN 40
48#define KORE_KEY_SELECT 41
49#define KORE_KEY_PRINT 42
50#define KORE_KEY_EXECUTE 43
51#define KORE_KEY_PRINT_SCREEN 44
52#define KORE_KEY_INSERT 45
53#define KORE_KEY_DELETE 46
64#define KORE_KEY_COLON 58
65#define KORE_KEY_SEMICOLON 59
66#define KORE_KEY_LESS_THAN 60
67#define KORE_KEY_EQUALS 61
68#define KORE_KEY_GREATER_THAN 62
69#define KORE_KEY_QUESTIONMARK 63
97#define KORE_KEY_WIN 91
98#define KORE_KEY_CONTEXT_MENU 93
99#define KORE_KEY_SLEEP 95
100#define KORE_KEY_NUMPAD_0 96
101#define KORE_KEY_NUMPAD_1 97
102#define KORE_KEY_NUMPAD_2 98
103#define KORE_KEY_NUMPAD_3 99
104#define KORE_KEY_NUMPAD_4 100
105#define KORE_KEY_NUMPAD_5 101
106#define KORE_KEY_NUMPAD_6 102
107#define KORE_KEY_NUMPAD_7 103
108#define KORE_KEY_NUMPAD_8 104
109#define KORE_KEY_NUMPAD_9 105
110#define KORE_KEY_MULTIPLY 106
111#define KORE_KEY_ADD 107
112#define KORE_KEY_SEPARATOR 108
113#define KORE_KEY_SUBTRACT 109
114#define KORE_KEY_DECIMAL 110
115#define KORE_KEY_DIVIDE 111
116#define KORE_KEY_F1 112
117#define KORE_KEY_F2 113
118#define KORE_KEY_F3 114
119#define KORE_KEY_F4 115
120#define KORE_KEY_F5 116
121#define KORE_KEY_F6 117
122#define KORE_KEY_F7 118
123#define KORE_KEY_F8 119
124#define KORE_KEY_F9 120
125#define KORE_KEY_F10 121
126#define KORE_KEY_F11 122
127#define KORE_KEY_F12 123
128#define KORE_KEY_F13 124
129#define KORE_KEY_F14 125
130#define KORE_KEY_F15 126
131#define KORE_KEY_F16 127
132#define KORE_KEY_F17 128
133#define KORE_KEY_F18 129
134#define KORE_KEY_F19 130
135#define KORE_KEY_F20 131
136#define KORE_KEY_F21 132
137#define KORE_KEY_F22 133
138#define KORE_KEY_F23 134
139#define KORE_KEY_F24 135
140#define KORE_KEY_NUM_LOCK 144
141#define KORE_KEY_SCROLL_LOCK 145
142#define KORE_KEY_WIN_OEM_FJ_JISHO 146
143#define KORE_KEY_WIN_OEM_FJ_MASSHOU 147
144#define KORE_KEY_WIN_OEM_FJ_TOUROKU 148
145#define KORE_KEY_WIN_OEM_FJ_LOYA 149
146#define KORE_KEY_WIN_OEM_FJ_ROYA 150
147#define KORE_KEY_CIRCUMFLEX 160
148#define KORE_KEY_EXCLAMATION 161
149#define KORE_KEY_DOUBLE_QUOTE 162
150#define KORE_KEY_HASH 163
151#define KORE_KEY_DOLLAR 164
152#define KORE_KEY_PERCENT 165
153#define KORE_KEY_AMPERSAND 166
154#define KORE_KEY_UNDERSCORE 167
155#define KORE_KEY_OPEN_PAREN 168
156#define KORE_KEY_CLOSE_PAREN 169
157#define KORE_KEY_ASTERISK 170
158#define KORE_KEY_PLUS 171
159#define KORE_KEY_PIPE 172
160#define KORE_KEY_HYPHEN_MINUS 173
161#define KORE_KEY_OPEN_CURLY_BRACKET 174
162#define KORE_KEY_CLOSE_CURLY_BRACKET 175
163#define KORE_KEY_TILDE 176
164#define KORE_KEY_VOLUME_MUTE 181
165#define KORE_KEY_VOLUME_DOWN 182
166#define KORE_KEY_VOLUME_UP 183
167#define KORE_KEY_COMMA 188
168#define KORE_KEY_PERIOD 190
169#define KORE_KEY_SLASH 191
170#define KORE_KEY_BACK_QUOTE 192
171#define KORE_KEY_OPEN_BRACKET 219
172#define KORE_KEY_BACK_SLASH 220
173#define KORE_KEY_CLOSE_BRACKET 221
174#define KORE_KEY_QUOTE 222
175#define KORE_KEY_META 224
176#define KORE_KEY_ALT_GR 225
177#define KORE_KEY_WIN_ICO_HELP 227
178#define KORE_KEY_WIN_ICO_00 228
179#define KORE_KEY_WIN_ICO_CLEAR 230
180#define KORE_KEY_WIN_OEM_RESET 233
181#define KORE_KEY_WIN_OEM_JUMP 234
182#define KORE_KEY_WIN_OEM_PA1 235
183#define KORE_KEY_WIN_OEM_PA2 236
184#define KORE_KEY_WIN_OEM_PA3 237
185#define KORE_KEY_WIN_OEM_WSCTRL 238
186#define KORE_KEY_WIN_OEM_CUSEL 239
187#define KORE_KEY_WIN_OEM_ATTN 240
188#define KORE_KEY_WIN_OEM_FINISH 241
189#define KORE_KEY_WIN_OEM_COPY 242
190#define KORE_KEY_WIN_OEM_AUTO 243
191#define KORE_KEY_WIN_OEM_ENLW 244
192#define KORE_KEY_WIN_OEM_BACK_TAB 245
193#define KORE_KEY_ATTN 246
194#define KORE_KEY_CRSEL 247
195#define KORE_KEY_EXSEL 248
196#define KORE_KEY_EREOF 249
197#define KORE_KEY_PLAY 250
198#define KORE_KEY_ZOOM 251
199#define KORE_KEY_PA1 253
200#define KORE_KEY_WIN_OEM_CLEAR 254
238void kore_internal_keyboard_trigger_key_down(
int key_code);
239void kore_internal_keyboard_trigger_key_up(
int key_code);
240void kore_internal_keyboard_trigger_key_press(
unsigned character);
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KORE_FUNC void kore_keyboard_show(void)
Show the keyboard if the system is using a software-keyboard.
KORE_FUNC void kore_keyboard_set_key_press_callback(void(*value)(unsigned, void *), void *data)
Sets the keyboard-key-press-callback which is called when the system decides that a character came in...
KORE_FUNC void kore_keyboard_set_key_up_callback(void(*value)(int, void *), void *data)
Sets the keyboard-key-up-callback which is called with a key-code when a key goes up....
KORE_FUNC void kore_keyboard_hide(void)
Hide the keyboard if the system is using a software-keyboard.
KORE_FUNC void kore_keyboard_set_key_down_callback(void(*value)(int, void *), void *data)
Sets the keyboard-key-down-callback which is called with a key-code when a key goes down....
KORE_FUNC bool kore_keyboard_active(void)
Figure out whether the keyboard is currently shown if the system is using a software-keyboard.