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);
566#ifndef DOXYGEN_SHOULD_SKIP_THIS
570struct EnableBitmaskOperators<
Mod> {
571 static constexpr bool value =
true;
A physical control.
Definition: Control.h:38
@ Unknown
An unknown orientation.
@ Down
The down direction.
Mod
Modifier enumeration.
Definition: Keyboard.h:38
Scancode
Scancodes.
Definition: Keyboard.h:51
Keycode
Keycodes.
Definition: Keyboard.h:280
@ Super
Is the Super key pressed?
@ Shift
Is the Shift key pressed?
@ Alt
Is the Alt key pressed?
The namespace for gf classes.
Some keyboard related functions.
Definition: Keyboard.h:498
static Scancode unlocalize(Keycode keycode)
Identify the physical key corresponding to a logical one.
static Keycode getKeycodeFromName(const char *name)
Get the keycode associated to a name.
static Keycode localize(Scancode scancode)
Localize a physical key to a logical one.
static const char * getScancodeName(Scancode scancode)
Get the representation of a scancode.
Keyboard()=delete
Deleted constructor.
static const char * getKeycodeName(Keycode keycode)
Get the representation of a keycode.
static Scancode getScancodeFromName(const char *name)
Get the scancode associated to a name.