SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL3pp_keycode.h
1#ifndef SDL3PP_KEYCODE_H_
2#define SDL3PP_KEYCODE_H_
3
4#include <SDL3/SDL_keycode.h>
5#include "SDL3pp_scancode.h"
6#include "SDL3pp_stdinc.h"
7
8namespace SDL {
9
24using KeycodeRaw = SDL_Keycode;
25
26// Forward decl
27struct Keycode;
28
34using Keymod = Uint16;
35
36// To remove clash with old names:
37#undef KMOD_ALT
38#undef KMOD_CAPS
39#undef KMOD_CTRL
40#undef KMOD_GUI
41#undef KMOD_LALT
42#undef KMOD_LCTRL
43#undef KMOD_LGUI
44#undef KMOD_LSHIFT
45#undef KMOD_MODE
46#undef KMOD_NONE
47#undef KMOD_NUM
48#undef KMOD_RALT
49#undef KMOD_RCTRL
50#undef KMOD_RGUI
51#undef KMOD_RSHIFT
52#undef KMOD_SCROLL
53#undef KMOD_SHIFT
54
55constexpr Keymod KMOD_NONE = SDL_KMOD_NONE;
56
57constexpr Keymod KMOD_LSHIFT = SDL_KMOD_LSHIFT;
58
60 SDL_KMOD_RSHIFT;
61
63 SDL_KMOD_LEVEL5;
64
65constexpr Keymod KMOD_LCTRL =
66 SDL_KMOD_LCTRL;
67
68constexpr Keymod KMOD_RCTRL =
69 SDL_KMOD_RCTRL;
70
71constexpr Keymod KMOD_LALT = SDL_KMOD_LALT;
72
73constexpr Keymod KMOD_RALT = SDL_KMOD_RALT;
74
75constexpr Keymod KMOD_LGUI =
76 SDL_KMOD_LGUI;
77
78constexpr Keymod KMOD_RGUI =
79 SDL_KMOD_RGUI;
80
82constexpr Keymod KMOD_NUM = SDL_KMOD_NUM;
83
84constexpr Keymod KMOD_CAPS = SDL_KMOD_CAPS;
85
86constexpr Keymod KMOD_MODE = SDL_KMOD_MODE;
87
89 SDL_KMOD_SCROLL;
90
91constexpr Keymod KMOD_CTRL = SDL_KMOD_CTRL;
92
93constexpr Keymod KMOD_SHIFT = SDL_KMOD_SHIFT;
94
95constexpr Keymod KMOD_ALT = SDL_KMOD_ALT;
96
97constexpr Keymod KMOD_GUI = SDL_KMOD_GUI;
98
116{
117 KeycodeRaw m_keycode;
118
119public:
125 constexpr Keycode(KeycodeRaw keycode = {})
126 : m_keycode(keycode)
127 {
128 }
129
152 Keycode(Scancode scancode, Keymod modstate, bool key_event);
153
169 Keycode(StringParam name);
170
176 constexpr operator KeycodeRaw() const { return m_keycode; }
177
179 constexpr bool IsExtended() const;
180
182 constexpr bool IsScancode() const;
183
202 Scancode GetScancode(Keymod* modstate) const;
203
221 const char* GetName() const;
222};
223
224constexpr Keycode KEYCODE_UNKNOWN = SDLK_UNKNOWN;
225
226constexpr Keycode KEYCODE_RETURN = SDLK_RETURN;
227
228constexpr Keycode KEYCODE_ESCAPE = SDLK_ESCAPE;
229
230constexpr Keycode KEYCODE_BACKSPACE = SDLK_BACKSPACE;
231
232constexpr Keycode KEYCODE_TAB = SDLK_TAB;
233
234constexpr Keycode KEYCODE_SPACE = SDLK_SPACE;
235
236constexpr Keycode KEYCODE_EXCLAIM = SDLK_EXCLAIM;
237
238constexpr Keycode KEYCODE_DBLAPOSTROPHE = SDLK_DBLAPOSTROPHE;
239
240constexpr Keycode KEYCODE_HASH = SDLK_HASH;
241
242constexpr Keycode KEYCODE_DOLLAR = SDLK_DOLLAR;
243
244constexpr Keycode KEYCODE_PERCENT = SDLK_PERCENT;
245
246constexpr Keycode KEYCODE_AMPERSAND = SDLK_AMPERSAND;
247
248constexpr Keycode KEYCODE_APOSTROPHE = SDLK_APOSTROPHE;
249
250constexpr Keycode KEYCODE_LEFTPAREN = SDLK_LEFTPAREN;
251
252constexpr Keycode KEYCODE_RIGHTPAREN = SDLK_RIGHTPAREN;
253
254constexpr Keycode KEYCODE_ASTERISK = SDLK_ASTERISK;
255
256constexpr Keycode KEYCODE_PLUS = SDLK_PLUS;
257
258constexpr Keycode KEYCODE_COMMA = SDLK_COMMA;
259
260constexpr Keycode KEYCODE_MINUS = SDLK_MINUS;
261
262constexpr Keycode KEYCODE_PERIOD = SDLK_PERIOD;
263
264constexpr Keycode KEYCODE_SLASH = SDLK_SLASH;
265
266constexpr Keycode KEYCODE_0 = SDLK_0;
267
268constexpr Keycode KEYCODE_1 = SDLK_1;
269
270constexpr Keycode KEYCODE_2 = SDLK_2;
271
272constexpr Keycode KEYCODE_3 = SDLK_3;
273
274constexpr Keycode KEYCODE_4 = SDLK_4;
275
276constexpr Keycode KEYCODE_5 = SDLK_5;
277
278constexpr Keycode KEYCODE_6 = SDLK_6;
279
280constexpr Keycode KEYCODE_7 = SDLK_7;
281
282constexpr Keycode KEYCODE_8 = SDLK_8;
283
284constexpr Keycode KEYCODE_9 = SDLK_9;
285
286constexpr Keycode KEYCODE_COLON = SDLK_COLON;
287
288constexpr Keycode KEYCODE_SEMICOLON = SDLK_SEMICOLON;
289
290constexpr Keycode KEYCODE_LESS = SDLK_LESS;
291
292constexpr Keycode KEYCODE_EQUALS = SDLK_EQUALS;
293
294constexpr Keycode KEYCODE_GREATER = SDLK_GREATER;
295
296constexpr Keycode KEYCODE_QUESTION = SDLK_QUESTION;
297
298constexpr Keycode KEYCODE_AT = SDLK_AT;
299
300constexpr Keycode KEYCODE_LEFTBRACKET = SDLK_LEFTBRACKET;
301
302constexpr Keycode KEYCODE_BACKSLASH = SDLK_BACKSLASH;
303
304constexpr Keycode KEYCODE_RIGHTBRACKET = SDLK_RIGHTBRACKET;
305
306constexpr Keycode KEYCODE_CARET = SDLK_CARET;
307
308constexpr Keycode KEYCODE_UNDERSCORE = SDLK_UNDERSCORE;
309
310constexpr Keycode KEYCODE_GRAVE = SDLK_GRAVE;
311
312constexpr Keycode KEYCODE_A = SDLK_A;
313
314constexpr Keycode KEYCODE_B = SDLK_B;
315
316constexpr Keycode KEYCODE_C = SDLK_C;
317
318constexpr Keycode KEYCODE_D = SDLK_D;
319
320constexpr Keycode KEYCODE_E = SDLK_E;
321
322constexpr Keycode KEYCODE_F = SDLK_F;
323
324constexpr Keycode KEYCODE_G = SDLK_G;
325
326constexpr Keycode KEYCODE_H = SDLK_H;
327
328constexpr Keycode KEYCODE_I = SDLK_I;
329
330constexpr Keycode KEYCODE_J = SDLK_J;
331
332constexpr Keycode KEYCODE_K = SDLK_K;
333
334constexpr Keycode KEYCODE_L = SDLK_L;
335
336constexpr Keycode KEYCODE_M = SDLK_M;
337
338constexpr Keycode KEYCODE_N = SDLK_N;
339
340constexpr Keycode KEYCODE_O = SDLK_O;
341
342constexpr Keycode KEYCODE_P = SDLK_P;
343
344constexpr Keycode KEYCODE_Q = SDLK_Q;
345
346constexpr Keycode KEYCODE_R = SDLK_R;
347
348constexpr Keycode KEYCODE_S = SDLK_S;
349
350constexpr Keycode KEYCODE_T = SDLK_T;
351
352constexpr Keycode KEYCODE_U = SDLK_U;
353
354constexpr Keycode KEYCODE_V = SDLK_V;
355
356constexpr Keycode KEYCODE_W = SDLK_W;
357
358constexpr Keycode KEYCODE_X = SDLK_X;
359
360constexpr Keycode KEYCODE_Y = SDLK_Y;
361
362constexpr Keycode KEYCODE_Z = SDLK_Z;
363
364constexpr Keycode KEYCODE_LEFTBRACE = SDLK_LEFTBRACE;
365
366constexpr Keycode KEYCODE_PIPE = SDLK_PIPE;
367
368constexpr Keycode KEYCODE_RIGHTBRACE = SDLK_RIGHTBRACE;
369
370constexpr Keycode KEYCODE_TILDE = SDLK_TILDE;
371
372constexpr Keycode KEYCODE_DELETE = SDLK_DELETE;
373
374constexpr Keycode KEYCODE_PLUSMINUS = SDLK_PLUSMINUS;
375
377 SDLK_CAPSLOCK;
378
379constexpr Keycode KEYCODE_F1 = SDLK_F1;
380
381constexpr Keycode KEYCODE_F2 = SDLK_F2;
382
383constexpr Keycode KEYCODE_F3 = SDLK_F3;
384
385constexpr Keycode KEYCODE_F4 = SDLK_F4;
386
387constexpr Keycode KEYCODE_F5 = SDLK_F5;
388
389constexpr Keycode KEYCODE_F6 = SDLK_F6;
390
391constexpr Keycode KEYCODE_F7 = SDLK_F7;
392
393constexpr Keycode KEYCODE_F8 = SDLK_F8;
394
395constexpr Keycode KEYCODE_F9 = SDLK_F9;
396
397constexpr Keycode KEYCODE_F10 = SDLK_F10;
398
399constexpr Keycode KEYCODE_F11 = SDLK_F11;
400
401constexpr Keycode KEYCODE_F12 = SDLK_F12;
402
404 SDLK_PRINTSCREEN;
405
407 SDLK_SCROLLLOCK;
408
410 SDLK_PAUSE;
411
413 SDLK_INSERT;
414
416 SDLK_HOME;
417
419 SDLK_PAGEUP;
420
421constexpr Keycode KEYCODE_END = SDLK_END;
422
424 SDLK_PAGEDOWN;
425
427 SDLK_RIGHT;
428
430 SDLK_LEFT;
431
433 SDLK_DOWN;
434
435constexpr Keycode KEYCODE_UP = SDLK_UP;
436
438 SDLK_NUMLOCKCLEAR;
439
441 SDLK_KP_DIVIDE;
442
444 SDLK_KP_MULTIPLY;
445
447 SDLK_KP_MINUS;
448
450 SDLK_KP_PLUS;
451
453 SDLK_KP_ENTER;
454
456 SDLK_KP_1;
457
459 SDLK_KP_2;
460
462 SDLK_KP_3;
463
465 SDLK_KP_4;
466
468 SDLK_KP_5;
469
471 SDLK_KP_6;
472
474 SDLK_KP_7;
475
477 SDLK_KP_8;
478
480 SDLK_KP_9;
481
483 SDLK_KP_0;
484
486 SDLK_KP_PERIOD;
487
489 SDLK_APPLICATION;
490
492 SDLK_POWER;
493
495 SDLK_KP_EQUALS;
496
497constexpr Keycode KEYCODE_F13 = SDLK_F13;
498
499constexpr Keycode KEYCODE_F14 = SDLK_F14;
500
501constexpr Keycode KEYCODE_F15 = SDLK_F15;
502
503constexpr Keycode KEYCODE_F16 = SDLK_F16;
504
505constexpr Keycode KEYCODE_F17 = SDLK_F17;
506
507constexpr Keycode KEYCODE_F18 = SDLK_F18;
508
509constexpr Keycode KEYCODE_F19 = SDLK_F19;
510
511constexpr Keycode KEYCODE_F20 = SDLK_F20;
512
513constexpr Keycode KEYCODE_F21 = SDLK_F21;
514
515constexpr Keycode KEYCODE_F22 = SDLK_F22;
516
517constexpr Keycode KEYCODE_F23 = SDLK_F23;
518
519constexpr Keycode KEYCODE_F24 = SDLK_F24;
520
522 SDLK_EXECUTE;
523
525 SDLK_HELP;
526
528 SDLK_MENU;
529
531 SDLK_SELECT;
532
534 SDLK_STOP;
535
537 SDLK_AGAIN;
538
540 SDLK_UNDO;
541
542constexpr Keycode KEYCODE_CUT = SDLK_CUT;
543
545 SDLK_COPY;
546
548 SDLK_PASTE;
549
551 SDLK_FIND;
552
554 SDLK_MUTE;
555
557 SDLK_VOLUMEUP;
558
560 SDLK_VOLUMEDOWN;
561
563 SDLK_KP_COMMA;
564
566 SDLK_KP_EQUALSAS400;
567
569 SDLK_ALTERASE;
570
572 SDLK_SYSREQ;
573
575 SDLK_CANCEL;
576
578 SDLK_CLEAR;
579
581 SDLK_PRIOR;
582
584 SDLK_RETURN2;
585
587 SDLK_SEPARATOR;
588
589constexpr Keycode KEYCODE_OUT = SDLK_OUT;
590
592 SDLK_OPER;
593
595 SDLK_CLEARAGAIN;
596
598 SDLK_CRSEL;
599
601 SDLK_EXSEL;
602
604 SDLK_KP_00;
605
607 SDLK_KP_000;
608
610 SDLK_THOUSANDSSEPARATOR;
611
613 SDLK_DECIMALSEPARATOR;
614
616 SDLK_CURRENCYUNIT;
617
619 SDLK_CURRENCYSUBUNIT;
620
622 SDLK_KP_LEFTPAREN;
623
625 SDLK_KP_RIGHTPAREN;
626
628 SDLK_KP_LEFTBRACE;
629
631 SDLK_KP_RIGHTBRACE;
632
634 SDLK_KP_TAB;
635
637 SDLK_KP_BACKSPACE;
638
640 SDLK_KP_A;
641
643 SDLK_KP_B;
644
646 SDLK_KP_C;
647
649 SDLK_KP_D;
650
652 SDLK_KP_E;
653
655 SDLK_KP_F;
656
658 SDLK_KP_XOR;
659
661 SDLK_KP_POWER;
662
664 SDLK_KP_PERCENT;
665
667 SDLK_KP_LESS;
668
670 SDLK_KP_GREATER;
671
673 SDLK_KP_AMPERSAND;
674
676 SDLK_KP_DBLAMPERSAND;
677
679 SDLK_KP_VERTICALBAR;
680
682 SDLK_KP_DBLVERTICALBAR;
683
685 SDLK_KP_COLON;
686
688 SDLK_KP_HASH;
689
691 SDLK_KP_SPACE;
692
694 SDLK_KP_AT;
695
697 SDLK_KP_EXCLAM;
698
700 SDLK_KP_MEMSTORE;
701
703 SDLK_KP_MEMRECALL;
704
706 SDLK_KP_MEMCLEAR;
707
709 SDLK_KP_MEMADD;
710
712 SDLK_KP_MEMSUBTRACT;
713
715 SDLK_KP_MEMMULTIPLY;
716
718 SDLK_KP_MEMDIVIDE;
719
721 SDLK_KP_PLUSMINUS;
722
724 SDLK_KP_CLEAR;
725
727 SDLK_KP_CLEARENTRY;
728
730 SDLK_KP_BINARY;
731
733 SDLK_KP_OCTAL;
734
736 SDLK_KP_DECIMAL;
737
739 SDLK_KP_HEXADECIMAL;
740
742 SDLK_LCTRL;
743
745 SDLK_LSHIFT;
746
748 SDLK_LALT;
749
751 SDLK_LGUI;
752
754 SDLK_RCTRL;
755
757 SDLK_RSHIFT;
758
760 SDLK_RALT;
761
763 SDLK_RGUI;
764
766 SDLK_MODE;
767
769 SDLK_SLEEP;
770
772 SDLK_WAKE;
773
775 SDLK_CHANNEL_INCREMENT;
776
778 SDLK_CHANNEL_DECREMENT;
779
781 SDLK_MEDIA_PLAY;
782
784 SDLK_MEDIA_PAUSE;
785
787 SDLK_MEDIA_RECORD;
788
790 SDLK_MEDIA_FAST_FORWARD;
791
793 SDLK_MEDIA_REWIND;
794
796 SDLK_MEDIA_NEXT_TRACK;
797
799 SDLK_MEDIA_PREVIOUS_TRACK;
800
802 SDLK_MEDIA_STOP;
803
805 SDLK_MEDIA_EJECT;
806
808 SDLK_MEDIA_PLAY_PAUSE;
809
811 SDLK_MEDIA_SELECT;
812
814 SDLK_AC_NEW;
815
817 SDLK_AC_OPEN;
818
820 SDLK_AC_CLOSE;
821
823 SDLK_AC_EXIT;
824
826 SDLK_AC_SAVE;
827
829 SDLK_AC_PRINT;
830
832 SDLK_AC_PROPERTIES;
833
835 SDLK_AC_SEARCH;
836
838 SDLK_AC_HOME;
839
841 SDLK_AC_BACK;
842
844 SDLK_AC_FORWARD;
845
847 SDLK_AC_STOP;
848
850 SDLK_AC_REFRESH;
851
853 SDLK_AC_BOOKMARKS;
854
856 SDLK_SOFTLEFT;
857
859 SDLK_SOFTRIGHT;
860
862 SDLK_CALL;
863
865 SDLK_ENDCALL;
866
867constexpr Keycode KEYCODE_LEFT_TAB = SDLK_LEFT_TAB;
868
870 SDLK_LEVEL5_SHIFT;
871
873 SDLK_MULTI_KEY_COMPOSE;
874
875constexpr Keycode KEYCODE_LMETA = SDLK_LMETA;
876
877constexpr Keycode KEYCODE_RMETA = SDLK_RMETA;
878
879constexpr Keycode KEYCODE_LHYPER = SDLK_LHYPER;
880
881constexpr Keycode KEYCODE_RHYPER = SDLK_RHYPER;
882
883constexpr Keycode KEYCODE_EXTENDED_MASK = SDLK_EXTENDED_MASK;
884
885constexpr bool Keycode::IsExtended() const
886{
887 return m_keycode & SDLK_EXTENDED_MASK;
888}
889
890constexpr Keycode KEYCODE_SCANCODE_MASK = SDLK_SCANCODE_MASK;
891
892constexpr bool Keycode::IsScancode() const
893{
894 return m_keycode & SDLK_SCANCODE_MASK;
895}
896
904{
905 return SDL_SCANCODE_TO_KEYCODE(x);
906}
907
909
910} // namespace SDL
911
912#endif /* SDL3PP_KEYCODE_H_ */
The SDL virtual key representation.
Definition: SDL3pp_keycode.h:116
constexpr Keycode(KeycodeRaw keycode={})
Wraps Keycode.
Definition: SDL3pp_keycode.h:125
The SDL keyboard scancode representation.
Definition: SDL3pp_scancode.h:46
const char * GetName() const
Get a human-readable name for a key.
Definition: SDL3pp_keyboard.h:222
Scancode GetScancode(Keymod *modstate) const
Get the scancode corresponding to the given key code according to the current keyboard layout.
Definition: SDL3pp_keyboard.h:202
constexpr Keycode KEYCODE_PLUSMINUS
'\xB1'
Definition: SDL3pp_keycode.h:374
constexpr Keycode KEYCODE_HASH
'#'
Definition: SDL3pp_keycode.h:240
constexpr Keycode KEYCODE_RMETA
Extended key Right Meta.
Definition: SDL3pp_keycode.h:877
constexpr Keycode KEYCODE_THOUSANDSSEPARATOR
ScancodeToKeycode(SCANCODE_THOUSANDSSEPARATOR)
Definition: SDL3pp_keycode.h:609
constexpr Keycode KEYCODE_Z
'z'
Definition: SDL3pp_keycode.h:362
constexpr Keycode KEYCODE_MEDIA_PLAY
ScancodeToKeycode(SCANCODE_MEDIA_PLAY)
Definition: SDL3pp_keycode.h:780
constexpr Keycode KEYCODE_ESCAPE
'\x1B'
Definition: SDL3pp_keycode.h:228
constexpr Keycode KEYCODE_KP_MEMMULTIPLY
ScancodeToKeycode(SCANCODE_KP_MEMMULTIPLY)
Definition: SDL3pp_keycode.h:714
constexpr Keycode KEYCODE_Q
'q'
Definition: SDL3pp_keycode.h:344
constexpr Keycode KEYCODE_2
'2'
Definition: SDL3pp_keycode.h:270
constexpr Keycode KEYCODE_KP_1
ScancodeToKeycode(SCANCODE_KP_1)
Definition: SDL3pp_keycode.h:455
constexpr Keycode KEYCODE_MEDIA_PLAY_PAUSE
ScancodeToKeycode(SCANCODE_MEDIA_PLAY_PAUSE)
Definition: SDL3pp_keycode.h:807
constexpr Keycode KEYCODE_LEFTBRACE
'{'
Definition: SDL3pp_keycode.h:364
constexpr Keycode KEYCODE_WAKE
ScancodeToKeycode(SCANCODE_WAKE)
Definition: SDL3pp_keycode.h:771
constexpr Keycode KEYCODE_MEDIA_RECORD
ScancodeToKeycode(SCANCODE_MEDIA_RECORD)
Definition: SDL3pp_keycode.h:786
constexpr Keycode KEYCODE_PRIOR
ScancodeToKeycode(SCANCODE_PRIOR)
Definition: SDL3pp_keycode.h:580
constexpr Keycode KEYCODE_ENDCALL
ScancodeToKeycode(SCANCODE_ENDCALL)
Definition: SDL3pp_keycode.h:864
constexpr Keycode KEYCODE_G
'g'
Definition: SDL3pp_keycode.h:324
constexpr Keycode KEYCODE_7
'7'
Definition: SDL3pp_keycode.h:280
constexpr Keycode KEYCODE_F12
ScancodeToKeycode(SCANCODE_F12)
Definition: SDL3pp_keycode.h:401
constexpr Keycode KEYCODE_8
'8'
Definition: SDL3pp_keycode.h:282
constexpr Keymod KMOD_NUM
the Num Lock key (may be located on an extended keypad) is down.
Definition: SDL3pp_keycode.h:82
constexpr Keycode KEYCODE_F10
ScancodeToKeycode(SCANCODE_F10)
Definition: SDL3pp_keycode.h:397
constexpr Keycode KEYCODE_EXSEL
ScancodeToKeycode(SCANCODE_EXSEL)
Definition: SDL3pp_keycode.h:600
constexpr Keycode KEYCODE_SELECT
ScancodeToKeycode(SCANCODE_SELECT)
Definition: SDL3pp_keycode.h:530
constexpr Keycode KEYCODE_AC_SEARCH
ScancodeToKeycode(SCANCODE_AC_SEARCH)
Definition: SDL3pp_keycode.h:834
constexpr Keycode KEYCODE_PERIOD
'.'
Definition: SDL3pp_keycode.h:262
constexpr Keycode KEYCODE_END
ScancodeToKeycode(SCANCODE_END)
Definition: SDL3pp_keycode.h:421
constexpr Keycode KEYCODE_KP_000
ScancodeToKeycode(SCANCODE_KP_000)
Definition: SDL3pp_keycode.h:606
constexpr Keycode KEYCODE_OUT
ScancodeToKeycode(SCANCODE_OUT)
Definition: SDL3pp_keycode.h:589
constexpr Keycode KEYCODE_SLEEP
ScancodeToKeycode(SCANCODE_SLEEP)
Definition: SDL3pp_keycode.h:768
constexpr Keymod KMOD_MODE
the !AltGr key is down.
Definition: SDL3pp_keycode.h:86
constexpr Keycode KEYCODE_KP_LEFTBRACE
ScancodeToKeycode(SCANCODE_KP_LEFTBRACE)
Definition: SDL3pp_keycode.h:627
constexpr Keycode KEYCODE_AT
'@'
Definition: SDL3pp_keycode.h:298
constexpr Keycode KEYCODE_BACKSLASH
'\b'
Definition: SDL3pp_keycode.h:302
constexpr Keycode KEYCODE_KP_COMMA
ScancodeToKeycode(SCANCODE_KP_COMMA)
Definition: SDL3pp_keycode.h:562
constexpr Keycode KEYCODE_B
'b'
Definition: SDL3pp_keycode.h:314
constexpr Keymod KMOD_RSHIFT
the right Shift key is down.
Definition: SDL3pp_keycode.h:59
constexpr Keycode KEYCODE_SPACE
' '
Definition: SDL3pp_keycode.h:234
constexpr Keycode KEYCODE_P
'p'
Definition: SDL3pp_keycode.h:342
constexpr Keymod KMOD_LALT
the left Alt key is down.
Definition: SDL3pp_keycode.h:71
constexpr Keycode KEYCODE_CANCEL
ScancodeToKeycode(SCANCODE_CANCEL)
Definition: SDL3pp_keycode.h:574
constexpr Keycode KEYCODE_UNDERSCORE
'_'
Definition: SDL3pp_keycode.h:308
constexpr Keycode KEYCODE_A
'a'
Definition: SDL3pp_keycode.h:312
constexpr Keycode KEYCODE_LEFT_TAB
Extended key Left Tab.
Definition: SDL3pp_keycode.h:867
constexpr Keycode KEYCODE_F16
ScancodeToKeycode(SCANCODE_F16)
Definition: SDL3pp_keycode.h:503
constexpr Keycode KEYCODE_LMETA
Extended key Left Meta.
Definition: SDL3pp_keycode.h:875
constexpr Keycode KEYCODE_PIPE
'|'
Definition: SDL3pp_keycode.h:366
constexpr Keycode KEYCODE_RIGHTBRACE
'}'
Definition: SDL3pp_keycode.h:368
constexpr Keycode KEYCODE_SCROLLLOCK
ScancodeToKeycode(SCANCODE_SCROLLLOCK)
Definition: SDL3pp_keycode.h:406
constexpr Keycode ScancodeToKeycode(Scancode x)
Transform scancode to keycode.
Definition: SDL3pp_keycode.h:903
constexpr Keycode KEYCODE_DECIMALSEPARATOR
ScancodeToKeycode(SCANCODE_DECIMALSEPARATOR)
Definition: SDL3pp_keycode.h:612
constexpr Keycode KEYCODE_COMMA
','
Definition: SDL3pp_keycode.h:258
constexpr Keycode KEYCODE_KP_PERCENT
ScancodeToKeycode(SCANCODE_KP_PERCENT)
Definition: SDL3pp_keycode.h:663
constexpr Keycode KEYCODE_DELETE
'\x7F'
Definition: SDL3pp_keycode.h:372
constexpr Keycode KEYCODE_FIND
ScancodeToKeycode(SCANCODE_FIND)
Definition: SDL3pp_keycode.h:550
constexpr Keycode KEYCODE_COPY
ScancodeToKeycode(SCANCODE_COPY)
Definition: SDL3pp_keycode.h:544
constexpr Keycode KEYCODE_H
'h'
Definition: SDL3pp_keycode.h:326
constexpr Keycode KEYCODE_MEDIA_NEXT_TRACK
ScancodeToKeycode(SCANCODE_MEDIA_NEXT_TRACK)
Definition: SDL3pp_keycode.h:795
constexpr bool IsScancode() const
Has Scancode flag.
Definition: SDL3pp_keycode.h:892
constexpr Keycode KEYCODE_LCTRL
ScancodeToKeycode(SCANCODE_LCTRL)
Definition: SDL3pp_keycode.h:741
constexpr Keycode KEYCODE_MINUS
'-'
Definition: SDL3pp_keycode.h:260
constexpr Keycode KEYCODE_KP_EXCLAM
ScancodeToKeycode(SCANCODE_KP_EXCLAM)
Definition: SDL3pp_keycode.h:696
constexpr Keycode KEYCODE_CURRENCYUNIT
ScancodeToKeycode(SCANCODE_CURRENCYUNIT)
Definition: SDL3pp_keycode.h:615
Uint16 Keymod
Valid key modifiers (possibly OR'd together).
Definition: SDL3pp_keycode.h:34
constexpr Keymod KMOD_NONE
no modifier is applicable.
Definition: SDL3pp_keycode.h:55
constexpr Keycode KEYCODE_CAPSLOCK
ScancodeToKeycode(SCANCODE_CAPSLOCK)
Definition: SDL3pp_keycode.h:376
constexpr Keycode KEYCODE_U
'u'
Definition: SDL3pp_keycode.h:352
constexpr Keycode KEYCODE_KP_DBLAMPERSAND
ScancodeToKeycode(SCANCODE_KP_DBLAMPERSAND)
Definition: SDL3pp_keycode.h:675
constexpr Keycode KEYCODE_KP_BACKSPACE
ScancodeToKeycode(SCANCODE_KP_BACKSPACE)
Definition: SDL3pp_keycode.h:636
constexpr Keycode KEYCODE_EXECUTE
ScancodeToKeycode(SCANCODE_EXECUTE)
Definition: SDL3pp_keycode.h:521
constexpr Keycode KEYCODE_KP_MEMSUBTRACT
ScancodeToKeycode(SCANCODE_KP_MEMSUBTRACT)
Definition: SDL3pp_keycode.h:711
constexpr Keycode KEYCODE_MEDIA_EJECT
ScancodeToKeycode(SCANCODE_MEDIA_EJECT)
Definition: SDL3pp_keycode.h:804
constexpr Keycode KEYCODE_HELP
ScancodeToKeycode(SCANCODE_HELP)
Definition: SDL3pp_keycode.h:524
constexpr Keycode KEYCODE_KP_HEXADECIMAL
ScancodeToKeycode(SCANCODE_KP_HEXADECIMAL)
Definition: SDL3pp_keycode.h:738
constexpr Keycode KEYCODE_KP_RIGHTBRACE
ScancodeToKeycode(SCANCODE_KP_RIGHTBRACE)
Definition: SDL3pp_keycode.h:630
constexpr Keycode KEYCODE_KP_9
ScancodeToKeycode(SCANCODE_KP_9)
Definition: SDL3pp_keycode.h:479
constexpr Keycode KEYCODE_KP_OCTAL
ScancodeToKeycode(SCANCODE_KP_OCTAL)
Definition: SDL3pp_keycode.h:732
constexpr Keycode KEYCODE_F19
ScancodeToKeycode(SCANCODE_F19)
Definition: SDL3pp_keycode.h:509
constexpr Keycode KEYCODE_STOP
ScancodeToKeycode(SCANCODE_STOP)
Definition: SDL3pp_keycode.h:533
constexpr Keycode KEYCODE_SOFTLEFT
ScancodeToKeycode(SCANCODE_SOFTLEFT)
Definition: SDL3pp_keycode.h:855
constexpr Keycode KEYCODE_CLEARAGAIN
ScancodeToKeycode(SCANCODE_CLEARAGAIN)
Definition: SDL3pp_keycode.h:594
constexpr Keycode KEYCODE_UP
ScancodeToKeycode(SCANCODE_UP)
Definition: SDL3pp_keycode.h:435
constexpr Keycode KEYCODE_F4
ScancodeToKeycode(SCANCODE_F4)
Definition: SDL3pp_keycode.h:385
constexpr Keycode KEYCODE_OPER
ScancodeToKeycode(SCANCODE_OPER)
Definition: SDL3pp_keycode.h:591
constexpr Keycode KEYCODE_MULTI_KEY_COMPOSE
Extended key Multi-key Compose.
Definition: SDL3pp_keycode.h:872
constexpr Keycode KEYCODE_3
'3'
Definition: SDL3pp_keycode.h:272
constexpr Keymod KMOD_SCROLL
the Scroll Lock key is down.
Definition: SDL3pp_keycode.h:88
constexpr Keycode KEYCODE_AC_BACK
ScancodeToKeycode(SCANCODE_AC_BACK)
Definition: SDL3pp_keycode.h:840
constexpr Keycode KEYCODE_KP_00
ScancodeToKeycode(SCANCODE_KP_00)
Definition: SDL3pp_keycode.h:603
constexpr Keymod KMOD_RCTRL
the right Ctrl (Control) key is down.
Definition: SDL3pp_keycode.h:68
constexpr Keycode KEYCODE_RETURN2
ScancodeToKeycode(SCANCODE_RETURN2)
Definition: SDL3pp_keycode.h:583
constexpr Keycode KEYCODE_F5
ScancodeToKeycode(SCANCODE_F5)
Definition: SDL3pp_keycode.h:387
constexpr Keycode KEYCODE_LHYPER
Extended key Left Hyper.
Definition: SDL3pp_keycode.h:879
constexpr Keycode KEYCODE_F20
ScancodeToKeycode(SCANCODE_F20)
Definition: SDL3pp_keycode.h:511
constexpr Keycode KEYCODE_0
'0'
Definition: SDL3pp_keycode.h:266
constexpr bool IsExtended() const
Has Extended flag.
Definition: SDL3pp_keycode.h:885
constexpr Keycode KEYCODE_KP_B
ScancodeToKeycode(SCANCODE_KP_B)
Definition: SDL3pp_keycode.h:642
constexpr Keycode KEYCODE_D
'd'
Definition: SDL3pp_keycode.h:318
constexpr Keycode KEYCODE_1
'1'
Definition: SDL3pp_keycode.h:268
constexpr Keycode KEYCODE_W
'w'
Definition: SDL3pp_keycode.h:356
constexpr Keycode KEYCODE_F13
ScancodeToKeycode(SCANCODE_F13)
Definition: SDL3pp_keycode.h:497
constexpr Keycode KEYCODE_F15
ScancodeToKeycode(SCANCODE_F15)
Definition: SDL3pp_keycode.h:501
constexpr Keycode KEYCODE_EXTENDED_MASK
EXTENDED_MASK.
Definition: SDL3pp_keycode.h:883
constexpr Keycode KEYCODE_AC_OPEN
ScancodeToKeycode(SCANCODE_AC_OPEN)
Definition: SDL3pp_keycode.h:816
constexpr Keycode KEYCODE_AMPERSAND
'&'
Definition: SDL3pp_keycode.h:246
constexpr Keycode KEYCODE_AC_REFRESH
ScancodeToKeycode(SCANCODE_AC_REFRESH)
Definition: SDL3pp_keycode.h:849
constexpr Keycode KEYCODE_O
'o'
Definition: SDL3pp_keycode.h:340
constexpr Keycode KEYCODE_KP_SPACE
ScancodeToKeycode(SCANCODE_KP_SPACE)
Definition: SDL3pp_keycode.h:690
constexpr Keycode KEYCODE_HOME
ScancodeToKeycode(SCANCODE_HOME)
Definition: SDL3pp_keycode.h:415
constexpr Keycode KEYCODE_RIGHT
ScancodeToKeycode(SCANCODE_RIGHT)
Definition: SDL3pp_keycode.h:426
constexpr Keycode KEYCODE_MEDIA_PAUSE
ScancodeToKeycode(SCANCODE_MEDIA_PAUSE)
Definition: SDL3pp_keycode.h:783
constexpr Keycode KEYCODE_SYSREQ
ScancodeToKeycode(SCANCODE_SYSREQ)
Definition: SDL3pp_keycode.h:571
constexpr Keycode KEYCODE_6
'6'
Definition: SDL3pp_keycode.h:278
constexpr Keycode KEYCODE_TAB
'\t'
Definition: SDL3pp_keycode.h:232
constexpr Keycode KEYCODE_ALTERASE
ScancodeToKeycode(SCANCODE_ALTERASE)
Definition: SDL3pp_keycode.h:568
constexpr Keycode KEYCODE_LGUI
ScancodeToKeycode(SCANCODE_LGUI)
Definition: SDL3pp_keycode.h:750
constexpr Keycode KEYCODE_F23
ScancodeToKeycode(SCANCODE_F23)
Definition: SDL3pp_keycode.h:517
constexpr Keycode KEYCODE_LEVEL5_SHIFT
Extended key Level 5 Shift.
Definition: SDL3pp_keycode.h:869
constexpr Keycode KEYCODE_PAGEDOWN
ScancodeToKeycode(SCANCODE_PAGEDOWN)
Definition: SDL3pp_keycode.h:423
constexpr Keycode KEYCODE_F17
ScancodeToKeycode(SCANCODE_F17)
Definition: SDL3pp_keycode.h:505
constexpr Keycode KEYCODE_F14
ScancodeToKeycode(SCANCODE_F14)
Definition: SDL3pp_keycode.h:499
constexpr Keycode KEYCODE_KP_0
ScancodeToKeycode(SCANCODE_KP_0)
Definition: SDL3pp_keycode.h:482
constexpr Keycode KEYCODE_POWER
ScancodeToKeycode(SCANCODE_POWER)
Definition: SDL3pp_keycode.h:491
constexpr Keycode KEYCODE_F18
ScancodeToKeycode(SCANCODE_F18)
Definition: SDL3pp_keycode.h:507
constexpr Keycode KEYCODE_F24
ScancodeToKeycode(SCANCODE_F24)
Definition: SDL3pp_keycode.h:519
constexpr Keycode KEYCODE_DOWN
ScancodeToKeycode(SCANCODE_DOWN)
Definition: SDL3pp_keycode.h:432
constexpr Keycode KEYCODE_NUMLOCKCLEAR
ScancodeToKeycode(SCANCODE_NUMLOCKCLEAR)
Definition: SDL3pp_keycode.h:437
constexpr Keycode KEYCODE_AC_FORWARD
ScancodeToKeycode(SCANCODE_AC_FORWARD)
Definition: SDL3pp_keycode.h:843
constexpr Keycode KEYCODE_F
'f'
Definition: SDL3pp_keycode.h:322
constexpr Keycode KEYCODE_CARET
'^'
Definition: SDL3pp_keycode.h:306
constexpr Keycode KEYCODE_LESS
'<'
Definition: SDL3pp_keycode.h:290
constexpr Keycode KEYCODE_AC_PROPERTIES
ScancodeToKeycode(SCANCODE_AC_PROPERTIES)
Definition: SDL3pp_keycode.h:831
constexpr Keycode KEYCODE_KP_ENTER
ScancodeToKeycode(SCANCODE_KP_ENTER)
Definition: SDL3pp_keycode.h:452
constexpr Keycode KEYCODE_KP_MEMCLEAR
ScancodeToKeycode(SCANCODE_KP_MEMCLEAR)
Definition: SDL3pp_keycode.h:705
constexpr Keycode KEYCODE_QUESTION
'?'
Definition: SDL3pp_keycode.h:296
constexpr Keymod KMOD_GUI
Any GUI key is down.
Definition: SDL3pp_keycode.h:97
constexpr Keycode KEYCODE_9
'9'
Definition: SDL3pp_keycode.h:284
constexpr Keycode KEYCODE_KP_VERTICALBAR
ScancodeToKeycode(SCANCODE_KP_VERTICALBAR)
Definition: SDL3pp_keycode.h:678
constexpr Keycode KEYCODE_DOLLAR
'$'
Definition: SDL3pp_keycode.h:242
constexpr Keycode KEYCODE_KP_MEMSTORE
ScancodeToKeycode(SCANCODE_KP_MEMSTORE)
Definition: SDL3pp_keycode.h:699
constexpr Keycode KEYCODE_KP_4
ScancodeToKeycode(SCANCODE_KP_4)
Definition: SDL3pp_keycode.h:464
constexpr Keycode KEYCODE_F21
ScancodeToKeycode(SCANCODE_F21)
Definition: SDL3pp_keycode.h:513
constexpr Keycode KEYCODE_RIGHTBRACKET
']'
Definition: SDL3pp_keycode.h:304
constexpr Keycode KEYCODE_KP_F
ScancodeToKeycode(SCANCODE_KP_F)
Definition: SDL3pp_keycode.h:654
constexpr Keycode KEYCODE_AC_BOOKMARKS
ScancodeToKeycode(SCANCODE_AC_BOOKMARKS)
Definition: SDL3pp_keycode.h:852
constexpr Keycode KEYCODE_KP_BINARY
ScancodeToKeycode(SCANCODE_KP_BINARY)
Definition: SDL3pp_keycode.h:729
constexpr Keycode KEYCODE_L
'l'
Definition: SDL3pp_keycode.h:334
constexpr Keycode KEYCODE_MEDIA_SELECT
ScancodeToKeycode(SCANCODE_MEDIA_SELECT)
Definition: SDL3pp_keycode.h:810
constexpr Keycode KEYCODE_KP_MINUS
ScancodeToKeycode(SCANCODE_KP_MINUS)
Definition: SDL3pp_keycode.h:446
constexpr Keycode KEYCODE_PASTE
ScancodeToKeycode(SCANCODE_PASTE)
Definition: SDL3pp_keycode.h:547
constexpr Keycode KEYCODE_CRSEL
ScancodeToKeycode(SCANCODE_CRSEL)
Definition: SDL3pp_keycode.h:597
constexpr Keycode KEYCODE_LSHIFT
ScancodeToKeycode(SCANCODE_LSHIFT)
Definition: SDL3pp_keycode.h:744
constexpr Keycode KEYCODE_KP_MULTIPLY
ScancodeToKeycode(SCANCODE_KP_MULTIPLY)
Definition: SDL3pp_keycode.h:443
constexpr Keycode KEYCODE_PAGEUP
ScancodeToKeycode(SCANCODE_PAGEUP)
Definition: SDL3pp_keycode.h:418
constexpr Keycode KEYCODE_E
'e'
Definition: SDL3pp_keycode.h:320
constexpr Keycode KEYCODE_GREATER
'>'
Definition: SDL3pp_keycode.h:294
constexpr Keycode KEYCODE_CUT
ScancodeToKeycode(SCANCODE_CUT)
Definition: SDL3pp_keycode.h:542
constexpr Keycode KEYCODE_PERCENT
''
Definition: SDL3pp_keycode.h:244
constexpr Keycode KEYCODE_KP_CLEARENTRY
ScancodeToKeycode(SCANCODE_KP_CLEARENTRY)
Definition: SDL3pp_keycode.h:726
constexpr Keycode KEYCODE_APOSTROPHE
'\''
Definition: SDL3pp_keycode.h:248
constexpr Keymod KMOD_RGUI
the right GUI key (often the Windows key) is down.
Definition: SDL3pp_keycode.h:78
constexpr Keycode KEYCODE_SEMICOLON
';'
Definition: SDL3pp_keycode.h:288
constexpr Keycode KEYCODE_F7
ScancodeToKeycode(SCANCODE_F7)
Definition: SDL3pp_keycode.h:391
constexpr Keycode KEYCODE_KP_XOR
ScancodeToKeycode(SCANCODE_KP_XOR)
Definition: SDL3pp_keycode.h:657
constexpr Keycode KEYCODE_CHANNEL_INCREMENT
ScancodeToKeycode(SCANCODE_CHANNEL_INCREMENT)
Definition: SDL3pp_keycode.h:774
constexpr Keycode KEYCODE_RALT
ScancodeToKeycode(SCANCODE_RALT)
Definition: SDL3pp_keycode.h:759
constexpr Keycode KEYCODE_MEDIA_REWIND
ScancodeToKeycode(SCANCODE_MEDIA_REWIND)
Definition: SDL3pp_keycode.h:792
constexpr Keycode KEYCODE_KP_EQUALS
ScancodeToKeycode(SCANCODE_KP_EQUALS)
Definition: SDL3pp_keycode.h:494
constexpr Keycode KEYCODE_MENU
ScancodeToKeycode(SCANCODE_MENU)
Definition: SDL3pp_keycode.h:527
constexpr Keycode KEYCODE_KP_RIGHTPAREN
ScancodeToKeycode(SCANCODE_KP_RIGHTPAREN)
Definition: SDL3pp_keycode.h:624
constexpr Keycode KEYCODE_CHANNEL_DECREMENT
ScancodeToKeycode(SCANCODE_CHANNEL_DECREMENT)
Definition: SDL3pp_keycode.h:777
constexpr Keycode KEYCODE_EXCLAIM
'!'
Definition: SDL3pp_keycode.h:236
constexpr Keycode KEYCODE_RGUI
ScancodeToKeycode(SCANCODE_RGUI)
Definition: SDL3pp_keycode.h:762
constexpr Keycode KEYCODE_BACKSPACE
'\b'
Definition: SDL3pp_keycode.h:230
constexpr Keycode KEYCODE_S
's'
Definition: SDL3pp_keycode.h:348
constexpr Keycode KEYCODE_KP_MEMADD
ScancodeToKeycode(SCANCODE_KP_MEMADD)
Definition: SDL3pp_keycode.h:708
constexpr Keycode KEYCODE_SCANCODE_MASK
SCANCODE_MASK.
Definition: SDL3pp_keycode.h:890
constexpr Keycode KEYCODE_COLON
':'
Definition: SDL3pp_keycode.h:286
constexpr Keycode KEYCODE_KP_C
ScancodeToKeycode(SCANCODE_KP_C)
Definition: SDL3pp_keycode.h:645
constexpr Keycode KEYCODE_GRAVE
'‘’
Definition: SDL3pp_keycode.h:310
constexpr Keycode KEYCODE_KP_8
ScancodeToKeycode(SCANCODE_KP_8)
Definition: SDL3pp_keycode.h:476
constexpr Keycode KEYCODE_VOLUMEUP
ScancodeToKeycode(SCANCODE_VOLUMEUP)
Definition: SDL3pp_keycode.h:556
constexpr Keycode KEYCODE_AC_SAVE
ScancodeToKeycode(SCANCODE_AC_SAVE)
Definition: SDL3pp_keycode.h:825
constexpr Keymod KMOD_SHIFT
Any Shift key is down.
Definition: SDL3pp_keycode.h:93
constexpr Keycode KEYCODE_INSERT
ScancodeToKeycode(SCANCODE_INSERT)
Definition: SDL3pp_keycode.h:412
SDL_Keycode KeycodeRaw
Alias to raw representation for Keycode.
Definition: SDL3pp_keycode.h:24
constexpr Keycode KEYCODE_KP_MEMRECALL
ScancodeToKeycode(SCANCODE_KP_MEMRECALL)
Definition: SDL3pp_keycode.h:702
constexpr Keycode KEYCODE_KP_E
ScancodeToKeycode(SCANCODE_KP_E)
Definition: SDL3pp_keycode.h:651
constexpr Keycode KEYCODE_AC_CLOSE
ScancodeToKeycode(SCANCODE_AC_CLOSE)
Definition: SDL3pp_keycode.h:819
constexpr Keycode KEYCODE_C
'c'
Definition: SDL3pp_keycode.h:316
constexpr Keycode KEYCODE_SOFTRIGHT
ScancodeToKeycode(SCANCODE_SOFTRIGHT)
Definition: SDL3pp_keycode.h:858
constexpr Keycode KEYCODE_LALT
ScancodeToKeycode(SCANCODE_LALT)
Definition: SDL3pp_keycode.h:747
constexpr Keycode KEYCODE_KP_5
ScancodeToKeycode(SCANCODE_KP_5)
Definition: SDL3pp_keycode.h:467
constexpr Keycode KEYCODE_KP_LEFTPAREN
ScancodeToKeycode(SCANCODE_KP_LEFTPAREN)
Definition: SDL3pp_keycode.h:621
constexpr Keycode KEYCODE_N
'n'
Definition: SDL3pp_keycode.h:338
constexpr Keycode KEYCODE_F1
ScancodeToKeycode(SCANCODE_F1)
Definition: SDL3pp_keycode.h:379
constexpr Keycode KEYCODE_SEPARATOR
ScancodeToKeycode(SCANCODE_SEPARATOR)
Definition: SDL3pp_keycode.h:586
constexpr Keycode KEYCODE_KP_DBLVERTICALBAR
ScancodeToKeycode(SCANCODE_KP_DBLVERTICALBAR)
Definition: SDL3pp_keycode.h:681
constexpr Keymod KMOD_LGUI
the left GUI key (often the Windows key) is down.
Definition: SDL3pp_keycode.h:75
constexpr Keycode KEYCODE_MEDIA_STOP
ScancodeToKeycode(SCANCODE_MEDIA_STOP)
Definition: SDL3pp_keycode.h:801
constexpr Keycode KEYCODE_KP_DIVIDE
ScancodeToKeycode(SCANCODE_KP_DIVIDE)
Definition: SDL3pp_keycode.h:440
constexpr Keycode KEYCODE_AC_PRINT
ScancodeToKeycode(SCANCODE_AC_PRINT)
Definition: SDL3pp_keycode.h:828
constexpr Keycode KEYCODE_Y
'y'
Definition: SDL3pp_keycode.h:360
constexpr Keycode KEYCODE_KP_DECIMAL
ScancodeToKeycode(SCANCODE_KP_DECIMAL)
Definition: SDL3pp_keycode.h:735
constexpr Keycode KEYCODE_K
'k'
Definition: SDL3pp_keycode.h:332
constexpr Keymod KMOD_CTRL
Any Ctrl key is down.
Definition: SDL3pp_keycode.h:91
constexpr Keymod KMOD_ALT
Any Alt key is down.
Definition: SDL3pp_keycode.h:95
constexpr Keycode KEYCODE_5
'5'
Definition: SDL3pp_keycode.h:276
constexpr Keymod KMOD_LSHIFT
the left Shift key is down.
Definition: SDL3pp_keycode.h:57
constexpr Keycode KEYCODE_AC_EXIT
ScancodeToKeycode(SCANCODE_AC_EXIT)
Definition: SDL3pp_keycode.h:822
constexpr Keycode KEYCODE_KP_MEMDIVIDE
ScancodeToKeycode(SCANCODE_KP_MEMDIVIDE)
Definition: SDL3pp_keycode.h:717
constexpr Keycode KEYCODE_KP_AMPERSAND
ScancodeToKeycode(SCANCODE_KP_AMPERSAND)
Definition: SDL3pp_keycode.h:672
constexpr Keycode KEYCODE_KP_GREATER
ScancodeToKeycode(SCANCODE_KP_GREATER)
Definition: SDL3pp_keycode.h:669
constexpr Keycode KEYCODE_KP_PLUS
ScancodeToKeycode(SCANCODE_KP_PLUS)
Definition: SDL3pp_keycode.h:449
constexpr Keycode KEYCODE_RCTRL
ScancodeToKeycode(SCANCODE_RCTRL)
Definition: SDL3pp_keycode.h:753
constexpr Keycode KEYCODE_KP_POWER
ScancodeToKeycode(SCANCODE_KP_POWER)
Definition: SDL3pp_keycode.h:660
constexpr Keycode KEYCODE_MEDIA_PREVIOUS_TRACK
ScancodeToKeycode(SCANCODE_MEDIA_PREVIOUS_TRACK)
Definition: SDL3pp_keycode.h:798
constexpr Keycode KEYCODE_KP_LESS
ScancodeToKeycode(SCANCODE_KP_LESS)
Definition: SDL3pp_keycode.h:666
constexpr Keycode KEYCODE_KP_D
ScancodeToKeycode(SCANCODE_KP_D)
Definition: SDL3pp_keycode.h:648
constexpr Keycode KEYCODE_MEDIA_FAST_FORWARD
ScancodeToKeycode(SCANCODE_MEDIA_FAST_FORWARD)
Definition: SDL3pp_keycode.h:789
constexpr Keycode KEYCODE_AC_HOME
ScancodeToKeycode(SCANCODE_AC_HOME)
Definition: SDL3pp_keycode.h:837
constexpr Keycode KEYCODE_PAUSE
ScancodeToKeycode(SCANCODE_PAUSE)
Definition: SDL3pp_keycode.h:409
constexpr Keycode KEYCODE_KP_TAB
ScancodeToKeycode(SCANCODE_KP_TAB)
Definition: SDL3pp_keycode.h:633
constexpr Keymod KMOD_LEVEL5
the Level 5 Shift key is down.
Definition: SDL3pp_keycode.h:62
constexpr Keycode KEYCODE_TILDE
'~'
Definition: SDL3pp_keycode.h:370
constexpr Keycode KEYCODE_UNKNOWN
0
Definition: SDL3pp_keycode.h:224
constexpr Keycode KEYCODE_KP_AT
ScancodeToKeycode(SCANCODE_KP_AT)
Definition: SDL3pp_keycode.h:693
constexpr Keycode KEYCODE_4
'4'
Definition: SDL3pp_keycode.h:274
constexpr Keycode KEYCODE_RHYPER
Extended key Right Hyper.
Definition: SDL3pp_keycode.h:881
constexpr Keycode KEYCODE_KP_CLEAR
ScancodeToKeycode(SCANCODE_KP_CLEAR)
Definition: SDL3pp_keycode.h:723
constexpr Keycode KEYCODE_VOLUMEDOWN
ScancodeToKeycode(SCANCODE_VOLUMEDOWN)
Definition: SDL3pp_keycode.h:559
constexpr Keycode KEYCODE_RIGHTPAREN
')'
Definition: SDL3pp_keycode.h:252
constexpr Keycode KEYCODE_J
'j'
Definition: SDL3pp_keycode.h:330
constexpr Keycode KEYCODE_F2
ScancodeToKeycode(SCANCODE_F2)
Definition: SDL3pp_keycode.h:381
constexpr Keycode KEYCODE_AGAIN
ScancodeToKeycode(SCANCODE_AGAIN)
Definition: SDL3pp_keycode.h:536
constexpr Keycode KEYCODE_KP_7
ScancodeToKeycode(SCANCODE_KP_7)
Definition: SDL3pp_keycode.h:473
constexpr Keycode KEYCODE_V
'v'
Definition: SDL3pp_keycode.h:354
constexpr Keycode KEYCODE_ASTERISK
'*'
Definition: SDL3pp_keycode.h:254
constexpr Keymod KMOD_RALT
the right Alt key is down.
Definition: SDL3pp_keycode.h:73
constexpr Keycode KEYCODE_CALL
ScancodeToKeycode(SCANCODE_CALL)
Definition: SDL3pp_keycode.h:861
constexpr Keycode KEYCODE_T
't'
Definition: SDL3pp_keycode.h:350
constexpr Keycode KEYCODE_KP_COLON
ScancodeToKeycode(SCANCODE_KP_COLON)
Definition: SDL3pp_keycode.h:684
constexpr Keycode KEYCODE_DBLAPOSTROPHE
'"'
Definition: SDL3pp_keycode.h:238
constexpr Keycode KEYCODE_M
'm'
Definition: SDL3pp_keycode.h:336
constexpr Keycode KEYCODE_RETURN
'\r'
Definition: SDL3pp_keycode.h:226
constexpr Keycode KEYCODE_EQUALS
'='
Definition: SDL3pp_keycode.h:292
constexpr Keycode KEYCODE_MODE
ScancodeToKeycode(SCANCODE_MODE)
Definition: SDL3pp_keycode.h:765
constexpr Keycode KEYCODE_RSHIFT
ScancodeToKeycode(SCANCODE_RSHIFT)
Definition: SDL3pp_keycode.h:756
constexpr Keycode KEYCODE_APPLICATION
ScancodeToKeycode(SCANCODE_APPLICATION)
Definition: SDL3pp_keycode.h:488
constexpr Keycode KEYCODE_KP_EQUALSAS400
ScancodeToKeycode(SCANCODE_KP_EQUALSAS400)
Definition: SDL3pp_keycode.h:565
constexpr Keycode KEYCODE_R
'r'
Definition: SDL3pp_keycode.h:346
constexpr Keycode KEYCODE_UNDO
ScancodeToKeycode(SCANCODE_UNDO)
Definition: SDL3pp_keycode.h:539
constexpr Keycode KEYCODE_LEFTBRACKET
'['
Definition: SDL3pp_keycode.h:300
constexpr Keycode KEYCODE_F3
ScancodeToKeycode(SCANCODE_F3)
Definition: SDL3pp_keycode.h:383
constexpr Keycode KEYCODE_CLEAR
ScancodeToKeycode(SCANCODE_CLEAR)
Definition: SDL3pp_keycode.h:577
constexpr Keycode KEYCODE_KP_HASH
ScancodeToKeycode(SCANCODE_KP_HASH)
Definition: SDL3pp_keycode.h:687
constexpr Keycode KEYCODE_SLASH
'/'
Definition: SDL3pp_keycode.h:264
constexpr Keycode KEYCODE_F8
ScancodeToKeycode(SCANCODE_F8)
Definition: SDL3pp_keycode.h:393
constexpr Keycode KEYCODE_I
'i'
Definition: SDL3pp_keycode.h:328
constexpr Keycode KEYCODE_KP_PLUSMINUS
ScancodeToKeycode(SCANCODE_KP_PLUSMINUS)
Definition: SDL3pp_keycode.h:720
constexpr Keycode KEYCODE_F9
ScancodeToKeycode(SCANCODE_F9)
Definition: SDL3pp_keycode.h:395
constexpr Keycode KEYCODE_KP_2
ScancodeToKeycode(SCANCODE_KP_2)
Definition: SDL3pp_keycode.h:458
constexpr Keymod KMOD_CAPS
the Caps Lock key is down.
Definition: SDL3pp_keycode.h:84
constexpr Keycode KEYCODE_F22
ScancodeToKeycode(SCANCODE_F22)
Definition: SDL3pp_keycode.h:515
constexpr Keycode KEYCODE_LEFT
ScancodeToKeycode(SCANCODE_LEFT)
Definition: SDL3pp_keycode.h:429
constexpr Keycode KEYCODE_PRINTSCREEN
ScancodeToKeycode(SCANCODE_PRINTSCREEN)
Definition: SDL3pp_keycode.h:403
constexpr Keycode KEYCODE_X
'x'
Definition: SDL3pp_keycode.h:358
constexpr Keycode KEYCODE_KP_6
ScancodeToKeycode(SCANCODE_KP_6)
Definition: SDL3pp_keycode.h:470
constexpr Keycode KEYCODE_KP_3
ScancodeToKeycode(SCANCODE_KP_3)
Definition: SDL3pp_keycode.h:461
constexpr Keycode KEYCODE_F6
ScancodeToKeycode(SCANCODE_F6)
Definition: SDL3pp_keycode.h:389
constexpr Keycode KEYCODE_KP_A
ScancodeToKeycode(SCANCODE_KP_A)
Definition: SDL3pp_keycode.h:639
constexpr Keycode KEYCODE_AC_STOP
ScancodeToKeycode(SCANCODE_AC_STOP)
Definition: SDL3pp_keycode.h:846
constexpr Keycode KEYCODE_CURRENCYSUBUNIT
ScancodeToKeycode(SCANCODE_CURRENCYSUBUNIT)
Definition: SDL3pp_keycode.h:618
constexpr Keycode KEYCODE_MUTE
ScancodeToKeycode(SCANCODE_MUTE)
Definition: SDL3pp_keycode.h:553
constexpr Keycode KEYCODE_LEFTPAREN
'('
Definition: SDL3pp_keycode.h:250
constexpr Keycode KEYCODE_PLUS
'+'
Definition: SDL3pp_keycode.h:256
constexpr Keycode KEYCODE_F11
ScancodeToKeycode(SCANCODE_F11)
Definition: SDL3pp_keycode.h:399
constexpr Keycode KEYCODE_AC_NEW
ScancodeToKeycode(SCANCODE_AC_NEW)
Definition: SDL3pp_keycode.h:813
constexpr Keycode KEYCODE_KP_PERIOD
ScancodeToKeycode(SCANCODE_KP_PERIOD)
Definition: SDL3pp_keycode.h:485
constexpr Keymod KMOD_LCTRL
the left Ctrl (Control) key is down.
Definition: SDL3pp_keycode.h:65
::Uint16 Uint16
An unsigned 16-bit integer type.
Definition: SDL3pp_stdinc.h:315
Main include header for the SDL3pp library.