25 #include "Portability.h" 28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 38 enum class Mod : unsigned {
276 #ifndef DOXYGEN_SHOULD_SKIP_THIS 278 constexpr
int getKeycodeFromScancode(
Scancode scancode) {
279 return static_cast<int>(scancode) | (1 << 30);
282 #endif // DOXYGEN_SHOULD_SKIP_THIS 514 static const char *getScancodeName(
Scancode scancode);
523 static Scancode getScancodeFromName(
const char *name);
532 static const char *getKeycodeName(
Keycode keycode);
541 static Keycode getKeycodeFromName(
const char *name);
574 #ifndef DOXYGEN_SHOULD_SKIP_THIS 578 struct EnableBitmaskOperators<Modifiers> {
579 static constexpr
bool value =
true;
585 #endif // GF_KEYBOARD_H
Some keyboard related functions.
Definition: Keyboard.h:506
Is the Super key pressed?
Scancode
Scancodes.
Definition: Keyboard.h:59
Is the Shift key pressed?
A physical control.
Definition: Control.h:38
The namespace for gf classes.
Definition: Action.h:34
Mod
Modifier enumeration.
Definition: Keyboard.h:38
Keycode
Keycodes.
Definition: Keyboard.h:288