CSFML - C binding of the Simple and Fast Multimedia Library

CSFML 2.6.1

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

Loading...
Searching...
No Matches
Keyboard.h
Go to the documentation of this file.
1
2//
3// SFML - Simple and Fast Multimedia Library
4// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
5//
6// This software is provided 'as-is', without any express or implied warranty.
7// In no event will the authors be held liable for any damages arising from the use of this software.
8//
9// Permission is granted to anyone to use this software for any purpose,
10// including commercial applications, and to alter it and redistribute it freely,
11// subject to the following restrictions:
12//
13// 1. The origin of this software must not be misrepresented;
14// you must not claim that you wrote the original software.
15// If you use this software in a product, an acknowledgment
16// in the product documentation would be appreciated but is not required.
17//
18// 2. Altered source versions must be plainly marked as such,
19// and must not be misrepresented as being the original software.
20//
21// 3. This notice may not be removed or altered from any source distribution.
22//
24
25#ifndef SFML_KEYBOARD_H
26#define SFML_KEYBOARD_H
27
29// Headers
31#include <SFML/Window/Export.h>
32
33
42 typedef enum
43{
44 sfKeyUnknown = -1,
45 sfKeyA,
46 sfKeyB,
47 sfKeyC,
48 sfKeyD,
49 sfKeyE,
50 sfKeyF,
51 sfKeyG,
52 sfKeyH,
53 sfKeyI,
54 sfKeyJ,
55 sfKeyK,
56 sfKeyL,
57 sfKeyM,
58 sfKeyN,
59 sfKeyO,
60 sfKeyP,
61 sfKeyQ,
62 sfKeyR,
63 sfKeyS,
64 sfKeyT,
65 sfKeyU,
66 sfKeyV,
67 sfKeyW,
68 sfKeyX,
69 sfKeyY,
70 sfKeyZ,
71 sfKeyNum0,
72 sfKeyNum1,
73 sfKeyNum2,
74 sfKeyNum3,
75 sfKeyNum4,
76 sfKeyNum5,
77 sfKeyNum6,
78 sfKeyNum7,
79 sfKeyNum8,
80 sfKeyNum9,
81 sfKeyEscape,
82 sfKeyLControl,
83 sfKeyLShift,
84 sfKeyLAlt,
85 sfKeyLSystem,
86 sfKeyRControl,
87 sfKeyRShift,
88 sfKeyRAlt,
89 sfKeyRSystem,
90 sfKeyMenu,
91 sfKeyLBracket,
92 sfKeyRBracket,
93 sfKeySemicolon,
94 sfKeyComma,
95 sfKeyPeriod,
96 sfKeyApostrophe,
97 sfKeySlash,
98 sfKeyBackslash,
99 sfKeyGrave,
100 sfKeyEqual,
101 sfKeyHyphen,
102 sfKeySpace,
103 sfKeyEnter,
104 sfKeyBackspace,
105 sfKeyTab,
106 sfKeyPageUp,
107 sfKeyPageDown,
108 sfKeyEnd,
109 sfKeyHome,
110 sfKeyInsert,
111 sfKeyDelete,
112 sfKeyAdd,
113 sfKeySubtract,
114 sfKeyMultiply,
115 sfKeyDivide,
116 sfKeyLeft,
117 sfKeyRight,
118 sfKeyUp,
119 sfKeyDown,
120 sfKeyNumpad0,
121 sfKeyNumpad1,
122 sfKeyNumpad2,
123 sfKeyNumpad3,
124 sfKeyNumpad4,
125 sfKeyNumpad5,
126 sfKeyNumpad6,
127 sfKeyNumpad7,
128 sfKeyNumpad8,
129 sfKeyNumpad9,
130 sfKeyF1,
131 sfKeyF2,
132 sfKeyF3,
133 sfKeyF4,
134 sfKeyF5,
135 sfKeyF6,
136 sfKeyF7,
137 sfKeyF8,
138 sfKeyF9,
139 sfKeyF10,
140 sfKeyF11,
141 sfKeyF12,
142 sfKeyF13,
143 sfKeyF14,
144 sfKeyF15,
145 sfKeyPause,
146
147 sfKeyCount,
148
149 // Deprecated values:
150
151 sfKeyTilde = sfKeyGrave,
152 sfKeyDash = sfKeyHyphen,
153 sfKeyBack = sfKeyBackspace,
154 sfKeyBackSlash = sfKeyBackslash,
155 sfKeySemiColon = sfKeySemicolon,
156 sfKeyReturn = sfKeyEnter,
157 sfKeyQuote = sfKeyApostrophe
158} sfKeyCode;
159
160
169 typedef enum
170{
171 sfScanUnknown = -1,
172 sfScanA = 0,
173 sfScanB,
174 sfScanC,
175 sfScanD,
176 sfScanE,
177 sfScanF,
178 sfScanG,
179 sfScanH,
180 sfScanI,
181 sfScanJ,
182 sfScanK,
183 sfScanL,
184 sfScanM,
185 sfScanN,
186 sfScanO,
187 sfScanP,
188 sfScanQ,
189 sfScanR,
190 sfScanS,
191 sfScanT,
192 sfScanU,
193 sfScanV,
194 sfScanW,
195 sfScanX,
196 sfScanY,
197 sfScanZ,
198 sfScanNum1,
199 sfScanNum2,
200 sfScanNum3,
201 sfScanNum4,
202 sfScanNum5,
203 sfScanNum6,
204 sfScanNum7,
205 sfScanNum8,
206 sfScanNum9,
207 sfScanNum0,
208 sfScanEnter,
209 sfScanEscape,
210 sfScanBackspace,
211 sfScanTab,
212 sfScanSpace,
213 sfScanHyphen,
214 sfScanEqual,
215 sfScanLBracket,
216 sfScanRBracket,
217 // For US keyboards mapped to key 29 (Microsoft Keyboard Scan Code Specification)
218 // For Non-US keyboards mapped to key 42 (Microsoft Keyboard Scan Code Specification)
219 // Typical language mappings: Belg:£µ` FrCa:<>} Dan:*' Dutch:`´ Fren:µ* Ger:'# Ital:§ù LatAm:[}` Nor:*@ Span:ç} Swed:*' Swiss:$£} UK:~# Brazil:}]
220 sfScanBackslash,
221 sfScanSemicolon,
222 sfScanApostrophe,
223 sfScanGrave,
224 sfScanComma,
225 sfScanPeriod,
226 sfScanSlash,
227 sfScanF1,
228 sfScanF2,
229 sfScanF3,
230 sfScanF4,
231 sfScanF5,
232 sfScanF6,
233 sfScanF7,
234 sfScanF8,
235 sfScanF9,
236 sfScanF10,
237 sfScanF11,
238 sfScanF12,
239 sfScanF13,
240 sfScanF14,
241 sfScanF15,
242 sfScanF16,
243 sfScanF17,
244 sfScanF18,
245 sfScanF19,
246 sfScanF20,
247 sfScanF21,
248 sfScanF22,
249 sfScanF23,
250 sfScanF24,
251 sfScanCapsLock,
252 sfScanPrintScreen,
253 sfScanScrollLock,
254 sfScanPause,
255 sfScanInsert,
256 sfScanHome,
257 sfScanPageUp,
258 sfScanDelete,
259 sfScanEnd,
260 sfScanPageDown,
261 sfScanRight,
262 sfScanLeft,
263 sfScanDown,
264 sfScanUp,
265 sfScanNumLock,
266 sfScanNumpadDivide,
267 sfScanNumpadMultiply,
268 sfScanNumpadMinus,
269 sfScanNumpadPlus,
270 sfScanNumpadEqual,
271 sfScanNumpadEnter,
272 sfScanNumpadDecimal,
273 sfScanNumpad1,
274 sfScanNumpad2,
275 sfScanNumpad3,
276 sfScanNumpad4,
277 sfScanNumpad5,
278 sfScanNumpad6,
279 sfScanNumpad7,
280 sfScanNumpad8,
281 sfScanNumpad9,
282 sfScanNumpad0,
283 // For US keyboards doesn't exist
284 // For Non-US keyboards mapped to key 45 (Microsoft Keyboard Scan Code Specification)
285 // Typical language mappings: Belg:<> FrCa:«°» Dan:<> Dutch:]|[ Fren:<> Ger:<|> Ital:<> LatAm:<> Nor:<> Span:<> Swed:<|> Swiss:<> UK:\| Brazil: \|.
286 sfScanNonUsBackslash,
287 sfScanApplication,
288 sfScanExecute,
289 sfScanModeChange,
290 sfScanHelp,
291 sfScanMenu,
292 sfScanSelect,
293 sfScanRedo,
294 sfScanUndo,
295 sfScanCut,
296 sfScanCopy,
297 sfScanPaste,
298 sfScanVolumeMute,
299 sfScanVolumeUp,
300 sfScanVolumeDown,
301 sfScanMediaPlayPause,
302 sfScanMediaStop,
303 sfScanMediaNextTrack,
304 sfScanMediaPreviousTrack,
305 sfScanLControl,
306 sfScanLShift,
307 sfScanLAlt,
308 sfScanLSystem,
309 sfScanRControl,
310 sfScanRShift,
311 sfScanRAlt,
312 sfScanRSystem,
313 sfScanBack,
314 sfScanForward,
315 sfScanRefresh,
316 sfScanStop,
317 sfScanSearch,
318 sfScanFavorites,
319 sfScanHomePage,
320 sfScanLaunchApplication1,
321 sfScanLaunchApplication2,
322 sfScanLaunchMail,
323 sfScanLaunchMediaSelect,
324
325 sfScancodeCount
326} sfScancode;
327
328
339 CSFML_WINDOW_API sfBool sfKeyboard_isKeyPressed(sfKeyCode key);
340
351 CSFML_WINDOW_API sfBool sfKeyboard_isScancodePressed(sfScancode code);
352
366 CSFML_WINDOW_API sfKeyCode sfKeyboard_localize(sfScancode code);
367
381 CSFML_WINDOW_API sfScancode sfKeyboard_delocalize(sfKeyCode key);
382
407 CSFML_WINDOW_API const char* sfKeyboard_getDescription(sfScancode code);
408
421 CSFML_WINDOW_API void sfKeyboard_setVirtualKeyboardVisible(sfBool visible);
422
423#endif // SFML_KEYBOARD_H
sfBool
int sfBool
Definition Config.h:153
sfScancode
sfScancode
Scancodes.
Definition Keyboard.h:170
sfScanLaunchMediaSelect
@ sfScanLaunchMediaSelect
Keyboard Launch Media Select key.
Definition Keyboard.h:323
sfScanVolumeDown
@ sfScanVolumeDown
Keyboard Volume Down key.
Definition Keyboard.h:300
sfScanF3
@ sfScanF3
Keyboard F3 key.
Definition Keyboard.h:229
sfScanApostrophe
@ sfScanApostrophe
Keyboard ' and " key.
Definition Keyboard.h:222
sfScanO
@ sfScanO
Keyboard o and O key.
Definition Keyboard.h:186
sfScanLControl
@ sfScanLControl
Keyboard Left Control key.
Definition Keyboard.h:305
sfScanMenu
@ sfScanMenu
Keyboard Menu key.
Definition Keyboard.h:291
sfScanF
@ sfScanF
Keyboard f and F key.
Definition Keyboard.h:177
sfScanLShift
@ sfScanLShift
Keyboard Left Shift key.
Definition Keyboard.h:306
sfScanF16
@ sfScanF16
Keyboard F16 key.
Definition Keyboard.h:242
sfScanSelect
@ sfScanSelect
Keyboard Select key.
Definition Keyboard.h:292
sfScanB
@ sfScanB
Keyboard b and B key.
Definition Keyboard.h:173
sfScanW
@ sfScanW
Keyboard w and W key.
Definition Keyboard.h:194
sfScanLaunchApplication2
@ sfScanLaunchApplication2
Keyboard Launch Application 2 key.
Definition Keyboard.h:321
sfScanNumpad5
@ sfScanNumpad5
Keypad 5 key.
Definition Keyboard.h:277
sfScanF19
@ sfScanF19
Keyboard F19 key.
Definition Keyboard.h:245
sfScanY
@ sfScanY
Keyboard y and Y key.
Definition Keyboard.h:196
sfScanX
@ sfScanX
Keyboard x and X key.
Definition Keyboard.h:195
sfScanF9
@ sfScanF9
Keyboard F9 key.
Definition Keyboard.h:235
sfScanF2
@ sfScanF2
Keyboard F2 key.
Definition Keyboard.h:228
sfScanNumpadMinus
@ sfScanNumpadMinus
Keypad - key.
Definition Keyboard.h:268
sfScanPause
@ sfScanPause
Keyboard Pause key.
Definition Keyboard.h:254
sfScanNum6
@ sfScanNum6
Keyboard 6 and ^ key.
Definition Keyboard.h:203
sfScanS
@ sfScanS
Keyboard s and S key.
Definition Keyboard.h:190
sfScanR
@ sfScanR
Keyboard r and R key.
Definition Keyboard.h:189
sfScanUndo
@ sfScanUndo
Keyboard Undo key.
Definition Keyboard.h:294
sfScanE
@ sfScanE
Keyboard e and E key.
Definition Keyboard.h:176
sfScanNum2
@ sfScanNum2
Keyboard 2 and @ key.
Definition Keyboard.h:199
sfScanF17
@ sfScanF17
Keyboard F17 key.
Definition Keyboard.h:243
sfScanRBracket
@ sfScanRBracket
Keyboard ] and } key.
Definition Keyboard.h:216
sfScanPeriod
@ sfScanPeriod
Keyboard . and > key.
Definition Keyboard.h:225
sfScanHyphen
@ sfScanHyphen
Keyboard - and _ key.
Definition Keyboard.h:213
sfScanNum0
@ sfScanNum0
Keyboard 0 and ) key.
Definition Keyboard.h:207
sfScanF8
@ sfScanF8
Keyboard F8 key.
Definition Keyboard.h:234
sfScanExecute
@ sfScanExecute
Keyboard Execute key.
Definition Keyboard.h:288
sfScanSlash
@ sfScanSlash
Keyboard / and ? key.
Definition Keyboard.h:226
sfScanF1
@ sfScanF1
Keyboard F1 key.
Definition Keyboard.h:227
sfScanU
@ sfScanU
Keyboard u and U key.
Definition Keyboard.h:192
sfScanNumpadDecimal
@ sfScanNumpadDecimal
Keypad . and Delete key.
Definition Keyboard.h:272
sfScanVolumeUp
@ sfScanVolumeUp
Keyboard Volume Up key.
Definition Keyboard.h:299
sfScanN
@ sfScanN
Keyboard n and N key.
Definition Keyboard.h:185
sfScanFavorites
@ sfScanFavorites
Keyboard Favorites key.
Definition Keyboard.h:318
sfScanTab
@ sfScanTab
Keyboard Tab key.
Definition Keyboard.h:211
sfScanF10
@ sfScanF10
Keyboard F10 key.
Definition Keyboard.h:236
sfScanPrintScreen
@ sfScanPrintScreen
Keyboard Print Screen key.
Definition Keyboard.h:252
sfScanRShift
@ sfScanRShift
Keyboard Right Shift key.
Definition Keyboard.h:310
sfScanNum7
@ sfScanNum7
Keyboard 7 and & key.
Definition Keyboard.h:204
sfScanDelete
@ sfScanDelete
Keyboard Delete Forward key.
Definition Keyboard.h:258
sfScanZ
@ sfScanZ
Keyboard z and Z key.
Definition Keyboard.h:197
sfScanCut
@ sfScanCut
Keyboard Cut key.
Definition Keyboard.h:295
sfScanNumpad8
@ sfScanNumpad8
Keypad 8 and Up Arrow key.
Definition Keyboard.h:280
sfScanF18
@ sfScanF18
Keyboard F18 key.
Definition Keyboard.h:244
sfScanEscape
@ sfScanEscape
Keyboard Escape key.
Definition Keyboard.h:209
sfScanF23
@ sfScanF23
Keyboard F23 key.
Definition Keyboard.h:249
sfScanHelp
@ sfScanHelp
Keyboard Help key.
Definition Keyboard.h:290
sfScanLaunchMail
@ sfScanLaunchMail
Keyboard Launch Mail key.
Definition Keyboard.h:322
sfScanNumpad7
@ sfScanNumpad7
Keypad 7 and Home key.
Definition Keyboard.h:279
sfScanLBracket
@ sfScanLBracket
Keyboard [ and { key.
Definition Keyboard.h:215
sfScanNumpadDivide
@ sfScanNumpadDivide
Keypad / key.
Definition Keyboard.h:266
sfScanC
@ sfScanC
Keyboard c and C key.
Definition Keyboard.h:174
sfScanNumpadEnter
@ sfScanNumpadEnter
Keypad Enter/Return key.
Definition Keyboard.h:271
sfScanL
@ sfScanL
Keyboard l and L key.
Definition Keyboard.h:183
sfScanSpace
@ sfScanSpace
Keyboard Space key.
Definition Keyboard.h:212
sfScanRControl
@ sfScanRControl
Keyboard Right Control key.
Definition Keyboard.h:309
sfScanF13
@ sfScanF13
Keyboard F13 key.
Definition Keyboard.h:239
sfScanF11
@ sfScanF11
Keyboard F11 key.
Definition Keyboard.h:237
sfScanPageDown
@ sfScanPageDown
Keyboard Page Down key.
Definition Keyboard.h:260
sfScanNum3
@ sfScanNum3
Keyboard 3 and # key.
Definition Keyboard.h:200
sfScanPageUp
@ sfScanPageUp
Keyboard Page Up key.
Definition Keyboard.h:257
sfScanK
@ sfScanK
Keyboard k and K key.
Definition Keyboard.h:182
sfScanNumpadMultiply
@ sfScanNumpadMultiply
Keypad * key.
Definition Keyboard.h:267
sfScanA
@ sfScanA
Keyboard a and A key.
Definition Keyboard.h:172
sfScanStop
@ sfScanStop
Keyboard Stop key.
Definition Keyboard.h:316
sfScanNumpad3
@ sfScanNumpad3
Keypad 3 and Page Down key.
Definition Keyboard.h:275
sfScanMediaPlayPause
@ sfScanMediaPlayPause
Keyboard Media Play Pause key.
Definition Keyboard.h:301
sfScanBackslash
@ sfScanBackslash
Keyboard \ and | key OR various keys for Non-US keyboards.
Definition Keyboard.h:220
sfScanRSystem
@ sfScanRSystem
Keyboard Right System key.
Definition Keyboard.h:312
sfScanNum1
@ sfScanNum1
Keyboard 1 and ! key.
Definition Keyboard.h:198
sfScanModeChange
@ sfScanModeChange
Keyboard Mode Change key.
Definition Keyboard.h:289
sfScanRefresh
@ sfScanRefresh
Keyboard Refresh key.
Definition Keyboard.h:315
sfScanEqual
@ sfScanEqual
Keyboard = and +.
Definition Keyboard.h:214
sfScanF24
@ sfScanF24
Keyboard F24 key.
Definition Keyboard.h:250
sfScanScrollLock
@ sfScanScrollLock
Keyboard Scroll Lock key.
Definition Keyboard.h:253
sfScanBackspace
@ sfScanBackspace
Keyboard Backspace key.
Definition Keyboard.h:210
sfScanM
@ sfScanM
Keyboard m and M key.
Definition Keyboard.h:184
sfScanUp
@ sfScanUp
Keyboard Up Arrow key.
Definition Keyboard.h:264
sfScanMediaPreviousTrack
@ sfScanMediaPreviousTrack
Keyboard Media Previous Track key.
Definition Keyboard.h:304
sfScanBack
@ sfScanBack
Keyboard Back key.
Definition Keyboard.h:313
sfScanNum9
@ sfScanNum9
Keyboard 9 and ) key.
Definition Keyboard.h:206
sfScanNumpad6
@ sfScanNumpad6
Keypad 6 and Right Arrow key.
Definition Keyboard.h:278
sfScanCapsLock
@ sfScanCapsLock
Keyboard Caps Lock key.
Definition Keyboard.h:251
sfScanNumLock
@ sfScanNumLock
Keypad Num Lock and Clear key.
Definition Keyboard.h:265
sfScanPaste
@ sfScanPaste
Keyboard Paste key.
Definition Keyboard.h:297
sfScanNumpad0
@ sfScanNumpad0
Keypad 0 and Insert key.
Definition Keyboard.h:282
sfScanGrave
@ sfScanGrave
Keyboard ` and ~ key.
Definition Keyboard.h:223
sfScanI
@ sfScanI
Keyboard i and I key.
Definition Keyboard.h:180
sfScanNum8
@ sfScanNum8
Keyboard 8 and * key.
Definition Keyboard.h:205
sfScanF15
@ sfScanF15
Keyboard F15 key.
Definition Keyboard.h:241
sfScanMediaStop
@ sfScanMediaStop
Keyboard Media Stop key.
Definition Keyboard.h:302
sfScanComma
@ sfScanComma
Keyboard , and < key.
Definition Keyboard.h:224
sfScanF4
@ sfScanF4
Keyboard F4 key.
Definition Keyboard.h:230
sfScanP
@ sfScanP
Keyboard p and P key.
Definition Keyboard.h:187
sfScanRight
@ sfScanRight
Keyboard Right Arrow key.
Definition Keyboard.h:261
sfScanF7
@ sfScanF7
Keyboard F7 key.
Definition Keyboard.h:233
sfScanNumpad2
@ sfScanNumpad2
Keypad 2 and Down Arrow key.
Definition Keyboard.h:274
sfScanT
@ sfScanT
Keyboard t and T key.
Definition Keyboard.h:191
sfScanHome
@ sfScanHome
Keyboard Home key.
Definition Keyboard.h:256
sfScanSemicolon
@ sfScanSemicolon
Keyboard ; and : key.
Definition Keyboard.h:221
sfScanLSystem
@ sfScanLSystem
Keyboard Left System key.
Definition Keyboard.h:308
sfScanH
@ sfScanH
Keyboard h and H key.
Definition Keyboard.h:179
sfScanVolumeMute
@ sfScanVolumeMute
Keyboard Volume Mute key.
Definition Keyboard.h:298
sfScanF6
@ sfScanF6
Keyboard F6 key.
Definition Keyboard.h:232
sfScanForward
@ sfScanForward
Keyboard Forward key.
Definition Keyboard.h:314
sfScanMediaNextTrack
@ sfScanMediaNextTrack
Keyboard Media Next Track key.
Definition Keyboard.h:303
sfScanQ
@ sfScanQ
Keyboard q and Q key.
Definition Keyboard.h:188
sfScanF20
@ sfScanF20
Keyboard F20 key.
Definition Keyboard.h:246
sfScanNumpad1
@ sfScanNumpad1
Keypad 1 and End key.
Definition Keyboard.h:273
sfScanV
@ sfScanV
Keyboard v and V key.
Definition Keyboard.h:193
sfScanF14
@ sfScanF14
Keyboard F14 key.
Definition Keyboard.h:240
sfScanInsert
@ sfScanInsert
Keyboard Insert key.
Definition Keyboard.h:255
sfScanF5
@ sfScanF5
Keyboard F5 key.
Definition Keyboard.h:231
sfScanRAlt
@ sfScanRAlt
Keyboard Right Alt key.
Definition Keyboard.h:311
sfScanRedo
@ sfScanRedo
Keyboard Redo key.
Definition Keyboard.h:293
sfScanCopy
@ sfScanCopy
Keyboard Copy key.
Definition Keyboard.h:296
sfScanD
@ sfScanD
Keyboard d and D key.
Definition Keyboard.h:175
sfScanDown
@ sfScanDown
Keyboard Down Arrow key.
Definition Keyboard.h:263
sfScanNumpad9
@ sfScanNumpad9
Keypad 9 and Page Up key.
Definition Keyboard.h:281
sfScanLeft
@ sfScanLeft
Keyboard Left Arrow key.
Definition Keyboard.h:262
sfScancodeCount
@ sfScancodeCount
Keep last – the total number of scancodes.
Definition Keyboard.h:325
sfScanJ
@ sfScanJ
Keyboard j and J key.
Definition Keyboard.h:181
sfScanF12
@ sfScanF12
Keyboard F12 key.
Definition Keyboard.h:238
sfScanApplication
@ sfScanApplication
Keyboard Application key.
Definition Keyboard.h:287
sfScanNumpadPlus
@ sfScanNumpadPlus
Keypad + key.
Definition Keyboard.h:269
sfScanNum4
@ sfScanNum4
Keyboard 4 and $ key.
Definition Keyboard.h:201
sfScanLAlt
@ sfScanLAlt
Keyboard Left Alt key.
Definition Keyboard.h:307
sfScanG
@ sfScanG
Keyboard g and G key.
Definition Keyboard.h:178
sfScanUnknown
@ sfScanUnknown
Represents any scancode not present in this enum.
Definition Keyboard.h:171
sfScanEnd
@ sfScanEnd
Keyboard End key.
Definition Keyboard.h:259
sfScanHomePage
@ sfScanHomePage
Keyboard Home Page key.
Definition Keyboard.h:319
sfScanNum5
@ sfScanNum5
Keyboard 5 and % key.
Definition Keyboard.h:202
sfScanF22
@ sfScanF22
Keyboard F22 key.
Definition Keyboard.h:248
sfScanEnter
@ sfScanEnter
Keyboard Enter/Return key.
Definition Keyboard.h:208
sfScanNonUsBackslash
@ sfScanNonUsBackslash
Keyboard Non-US \ and | key.
Definition Keyboard.h:286
sfScanNumpad4
@ sfScanNumpad4
Keypad 4 and Left Arrow key.
Definition Keyboard.h:276
sfScanSearch
@ sfScanSearch
Keyboard Search key.
Definition Keyboard.h:317
sfScanNumpadEqual
@ sfScanNumpadEqual
keypad = key
Definition Keyboard.h:270
sfScanF21
@ sfScanF21
Keyboard F21 key.
Definition Keyboard.h:247
sfScanLaunchApplication1
@ sfScanLaunchApplication1
Keyboard Launch Application 1 key.
Definition Keyboard.h:320
sfKeyboard_getDescription
const char * sfKeyboard_getDescription(sfScancode code)
Provide a string representation for a given scancode.
sfKeyboard_isKeyPressed
sfBool sfKeyboard_isKeyPressed(sfKeyCode key)
Check if a key is pressed.
sfKeyboard_isScancodePressed
sfBool sfKeyboard_isScancodePressed(sfScancode code)
Check if a key is pressed.
sfKeyCode
sfKeyCode
Key codes.
Definition Keyboard.h:43
sfKeyG
@ sfKeyG
The G key.
Definition Keyboard.h:51
sfKeyUnknown
@ sfKeyUnknown
Unhandled key.
Definition Keyboard.h:44
sfKeyPageUp
@ sfKeyPageUp
The Page up key.
Definition Keyboard.h:106
sfKeyQuote
@ sfKeyQuote
Definition Keyboard.h:157
sfKeyF11
@ sfKeyF11
The F11 key.
Definition Keyboard.h:140
sfKeyO
@ sfKeyO
The O key.
Definition Keyboard.h:59
sfKeySemicolon
@ sfKeySemicolon
The ; key.
Definition Keyboard.h:93
sfKeyNum3
@ sfKeyNum3
The 3 key.
Definition Keyboard.h:74
sfKeyNum9
@ sfKeyNum9
The 9 key.
Definition Keyboard.h:80
sfKeyN
@ sfKeyN
The N key.
Definition Keyboard.h:58
sfKeySubtract
@ sfKeySubtract
The - key (minus, usually from numpad)
Definition Keyboard.h:113
sfKeyNum1
@ sfKeyNum1
The 1 key.
Definition Keyboard.h:72
sfKeyV
@ sfKeyV
The V key.
Definition Keyboard.h:66
sfKeyBackspace
@ sfKeyBackspace
The Backspace key.
Definition Keyboard.h:104
sfKeyDivide
@ sfKeyDivide
The / key.
Definition Keyboard.h:115
sfKeyL
@ sfKeyL
The L key.
Definition Keyboard.h:56
sfKeyDown
@ sfKeyDown
Down arrow.
Definition Keyboard.h:119
sfKeyNum5
@ sfKeyNum5
The 5 key.
Definition Keyboard.h:76
sfKeyNum6
@ sfKeyNum6
The 6 key.
Definition Keyboard.h:77
sfKeyRShift
@ sfKeyRShift
The right Shift key.
Definition Keyboard.h:87
sfKeyF7
@ sfKeyF7
The F7 key.
Definition Keyboard.h:136
sfKeyLShift
@ sfKeyLShift
The left Shift key.
Definition Keyboard.h:83
sfKeyY
@ sfKeyY
The Y key.
Definition Keyboard.h:69
sfKeyNumpad0
@ sfKeyNumpad0
The numpad 0 key.
Definition Keyboard.h:120
sfKeyF8
@ sfKeyF8
The F8 key.
Definition Keyboard.h:137
sfKeyNumpad4
@ sfKeyNumpad4
The numpad 4 key.
Definition Keyboard.h:124
sfKeyF2
@ sfKeyF2
The F2 key.
Definition Keyboard.h:131
sfKeyEnd
@ sfKeyEnd
The End key.
Definition Keyboard.h:108
sfKeyNumpad7
@ sfKeyNumpad7
The numpad 7 key.
Definition Keyboard.h:127
sfKeySemiColon
@ sfKeySemiColon
Definition Keyboard.h:155
sfKeySlash
@ sfKeySlash
The / key.
Definition Keyboard.h:97
sfKeyD
@ sfKeyD
The D key.
Definition Keyboard.h:48
sfKeyF
@ sfKeyF
The F key.
Definition Keyboard.h:50
sfKeyU
@ sfKeyU
The U key.
Definition Keyboard.h:65
sfKeyAdd
@ sfKeyAdd
The + key.
Definition Keyboard.h:112
sfKeyDelete
@ sfKeyDelete
The Delete key.
Definition Keyboard.h:111
sfKeyHyphen
@ sfKeyHyphen
The - key (hyphen)
Definition Keyboard.h:101
sfKeyT
@ sfKeyT
The T key.
Definition Keyboard.h:64
sfKeyLSystem
@ sfKeyLSystem
The left OS specific key: window (Windows and Linux), apple (macOS), ...
Definition Keyboard.h:85
sfKeyGrave
@ sfKeyGrave
The ` key.
Definition Keyboard.h:99
sfKeyReturn
@ sfKeyReturn
Definition Keyboard.h:156
sfKeyNumpad6
@ sfKeyNumpad6
The numpad 6 key.
Definition Keyboard.h:126
sfKeyNumpad3
@ sfKeyNumpad3
The numpad 3 key.
Definition Keyboard.h:123
sfKeyK
@ sfKeyK
The K key.
Definition Keyboard.h:55
sfKeyNumpad8
@ sfKeyNumpad8
The numpad 8 key.
Definition Keyboard.h:128
sfKeyLControl
@ sfKeyLControl
The left Control key.
Definition Keyboard.h:82
sfKeyF5
@ sfKeyF5
The F5 key.
Definition Keyboard.h:134
sfKeyHome
@ sfKeyHome
The Home key.
Definition Keyboard.h:109
sfKeyRBracket
@ sfKeyRBracket
The ] key.
Definition Keyboard.h:92
sfKeyF10
@ sfKeyF10
The F10 key.
Definition Keyboard.h:139
sfKeyF4
@ sfKeyF4
The F4 key.
Definition Keyboard.h:133
sfKeyJ
@ sfKeyJ
The J key.
Definition Keyboard.h:54
sfKeyC
@ sfKeyC
The C key.
Definition Keyboard.h:47
sfKeyRSystem
@ sfKeyRSystem
The right OS specific key: window (Windows and Linux), apple (macOS), ...
Definition Keyboard.h:89
sfKeyTab
@ sfKeyTab
The Tabulation key.
Definition Keyboard.h:105
sfKeyE
@ sfKeyE
The E key.
Definition Keyboard.h:49
sfKeyW
@ sfKeyW
The W key.
Definition Keyboard.h:67
sfKeyComma
@ sfKeyComma
The , key.
Definition Keyboard.h:94
sfKeyF15
@ sfKeyF15
The F15 key.
Definition Keyboard.h:144
sfKeyUp
@ sfKeyUp
Up arrow.
Definition Keyboard.h:118
sfKeyPeriod
@ sfKeyPeriod
The . key.
Definition Keyboard.h:95
sfKeyBackSlash
@ sfKeyBackSlash
Definition Keyboard.h:154
sfKeyF6
@ sfKeyF6
The F6 key.
Definition Keyboard.h:135
sfKeyQ
@ sfKeyQ
The Q key.
Definition Keyboard.h:61
sfKeyMultiply
@ sfKeyMultiply
The * key.
Definition Keyboard.h:114
sfKeyI
@ sfKeyI
The I key.
Definition Keyboard.h:53
sfKeyPause
@ sfKeyPause
The Pause key.
Definition Keyboard.h:145
sfKeyTilde
@ sfKeyTilde
Definition Keyboard.h:151
sfKeyNumpad1
@ sfKeyNumpad1
The numpad 1 key.
Definition Keyboard.h:121
sfKeyEnter
@ sfKeyEnter
The Enter/Return key.
Definition Keyboard.h:103
sfKeyNumpad9
@ sfKeyNumpad9
The numpad 9 key.
Definition Keyboard.h:129
sfKeyS
@ sfKeyS
The S key.
Definition Keyboard.h:63
sfKeyDash
@ sfKeyDash
Definition Keyboard.h:152
sfKeyCount
@ sfKeyCount
Keep last – the total number of keyboard keys.
Definition Keyboard.h:147
sfKeyP
@ sfKeyP
The P key.
Definition Keyboard.h:60
sfKeyB
@ sfKeyB
The B key.
Definition Keyboard.h:46
sfKeyF14
@ sfKeyF14
The F14 key.
Definition Keyboard.h:143
sfKeyNumpad5
@ sfKeyNumpad5
The numpad 5 key.
Definition Keyboard.h:125
sfKeyNum0
@ sfKeyNum0
The 0 key.
Definition Keyboard.h:71
sfKeyF1
@ sfKeyF1
The F1 key.
Definition Keyboard.h:130
sfKeyLBracket
@ sfKeyLBracket
The [ key.
Definition Keyboard.h:91
sfKeyX
@ sfKeyX
The X key.
Definition Keyboard.h:68
sfKeyLAlt
@ sfKeyLAlt
The left Alt key.
Definition Keyboard.h:84
sfKeyNum2
@ sfKeyNum2
The 2 key.
Definition Keyboard.h:73
sfKeyRight
@ sfKeyRight
Right arrow.
Definition Keyboard.h:117
sfKeyRAlt
@ sfKeyRAlt
The right Alt key.
Definition Keyboard.h:88
sfKeyZ
@ sfKeyZ
The Z key.
Definition Keyboard.h:70
sfKeyMenu
@ sfKeyMenu
The Menu key.
Definition Keyboard.h:90
sfKeyF12
@ sfKeyF12
The F12 key.
Definition Keyboard.h:141
sfKeyR
@ sfKeyR
The R key.
Definition Keyboard.h:62
sfKeyNum4
@ sfKeyNum4
The 4 key.
Definition Keyboard.h:75
sfKeyEqual
@ sfKeyEqual
The = key.
Definition Keyboard.h:100
sfKeyNumpad2
@ sfKeyNumpad2
The numpad 2 key.
Definition Keyboard.h:122
sfKeyM
@ sfKeyM
The M key.
Definition Keyboard.h:57
sfKeyBack
@ sfKeyBack
Definition Keyboard.h:153
sfKeyEscape
@ sfKeyEscape
The Escape key.
Definition Keyboard.h:81
sfKeyLeft
@ sfKeyLeft
Left arrow.
Definition Keyboard.h:116
sfKeyApostrophe
@ sfKeyApostrophe
The ' key.
Definition Keyboard.h:96
sfKeyNum8
@ sfKeyNum8
The 8 key.
Definition Keyboard.h:79
sfKeyNum7
@ sfKeyNum7
The 7 key.
Definition Keyboard.h:78
sfKeyRControl
@ sfKeyRControl
The right Control key.
Definition Keyboard.h:86
sfKeyF3
@ sfKeyF3
The F3 key.
Definition Keyboard.h:132
sfKeyInsert
@ sfKeyInsert
The Insert key.
Definition Keyboard.h:110
sfKeyPageDown
@ sfKeyPageDown
The Page down key.
Definition Keyboard.h:107
sfKeyBackslash
@ sfKeyBackslash
The \ key.
Definition Keyboard.h:98
sfKeyA
@ sfKeyA
The A key.
Definition Keyboard.h:45
sfKeyH
@ sfKeyH
The H key.
Definition Keyboard.h:52
sfKeyF9
@ sfKeyF9
The F8 key.
Definition Keyboard.h:138
sfKeyF13
@ sfKeyF13
The F13 key.
Definition Keyboard.h:142
sfKeySpace
@ sfKeySpace
The Space key.
Definition Keyboard.h:102
sfKeyboard_localize
sfKeyCode sfKeyboard_localize(sfScancode code)
Localize a physical key to a logical one.
sfKeyboard_delocalize
sfScancode sfKeyboard_delocalize(sfKeyCode key)
Identify the physical key corresponding to a logical one.
sfKeyboard_setVirtualKeyboardVisible
void sfKeyboard_setVirtualKeyboardVisible(sfBool visible)
Show or hide the virtual keyboard.
Export.h
CSFML_WINDOW_API
#define CSFML_WINDOW_API
Definition Window/Export.h:43