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