![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
Some keyboard related functions. More...
#include <gf/Keyboard.h>
Public Member Functions | |
Keyboard ()=delete | |
Deleted constructor. More... | |
Static Public Member Functions | |
static const char * | getScancodeName (Scancode scancode) |
Get the representation of a scancode. More... | |
static Scancode | getScancodeFromName (const char *name) |
Get the scancode associated to a name. More... | |
static const char * | getKeycodeName (Keycode keycode) |
Get the representation of a keycode. More... | |
static Keycode | getKeycodeFromName (const char *name) |
Get the keycode associated to a name. More... | |
static Keycode | localize (Scancode scancode) |
Localize a physical key to a logical one. More... | |
static Scancode | unlocalize (Keycode keycode) |
Identify the physical key corresponding to a logical one. More... | |
Some keyboard related functions.
|
delete |
Deleted constructor.
|
static |
Get the keycode associated to a name.
name | The name of the keycode |
|
static |
Get the representation of a keycode.
keycode | The keycode |
|
static |
Get the scancode associated to a name.
name | The name of the scancode |
|
static |
Get the representation of a scancode.
scancode | The scancode |
Localize a physical key to a logical one.
scancode | The scancode to localize |
Identify the physical key corresponding to a logical one.
keycode | The keycode to "unlocalize" |