25 #include "GraphicsApi.h" 28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 38 enum class Mod : unsigned {
268 #ifndef DOXYGEN_SHOULD_SKIP_THIS 270 constexpr
int getKeycodeFromScancode(
Scancode scancode) {
271 return static_cast<int>(scancode) | (1 << 30);
274 #endif // DOXYGEN_SHOULD_SKIP_THIS 506 static const char *getScancodeName(
Scancode scancode);
515 static Scancode getScancodeFromName(
const char *name);
524 static const char *getKeycodeName(
Keycode keycode);
533 static Keycode getKeycodeFromName(
const char *name);
566 #ifndef DOXYGEN_SHOULD_SKIP_THIS 570 struct EnableBitmaskOperators<Mod> {
571 static constexpr
bool value =
true;
577 #endif // GF_KEYBOARD_H
Is the Shift key pressed?
Some keyboard related functions.
Definition: Keyboard.h:498
A physical control.
Definition: Control.h:38
Scancode
Scancodes.
Definition: Keyboard.h:51
The namespace for gf classes.
Definition: Action.h:35
Is the Super key pressed?
Keycode
Keycodes.
Definition: Keyboard.h:280
Mod
Modifier enumeration.
Definition: Keyboard.h:38