Keys ​
Status of the keyboard keys and also mouse keys.
#include "Core/Input/KeyCodes.h"
Public Types ​
Name | |
---|---|
enum | Code { a = 0, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, n1, n2, n3, n4, n5, n6, n7, n8, n9, n0, altr, altl, ctrll, ctrlr, shiftl, shiftr, left, right, up, down, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, home, end, insert, del, pageUp, pageDown, esc, mouseLeft, mouseRight, mouseMiddle, mouseScrlUp, mouseScrlDown}<br>Codes representing keys on the keyboard and mouse (letters, numbers, functional keys, arrows, ... ) |
Public Functions ​
Name | |
---|---|
const char * | getKeyString(int enumVal) |
Public Attributes ​
Name | |
---|---|
constexpr const char *[] | keyStrings |
Public Types Documentation ​
enum Code ​
Enumerator | Value | Description |
---|---|---|
a | 0 | |
b | ||
c | ||
d | ||
e | ||
f | ||
g | ||
h | ||
i | ||
j | ||
k | ||
l | ||
m | ||
n | ||
o | ||
p | ||
q | ||
r | ||
s | ||
t | ||
u | ||
v | ||
w | ||
x | ||
y | ||
z | ||
n1 | ||
n2 | ||
n3 | ||
n4 | ||
n5 | ||
n6 | ||
n7 | ||
n8 | ||
n9 | ||
n0 | ||
altr | ||
altl | ||
ctrll | ||
ctrlr | ||
shiftl | ||
shiftr | ||
left | ||
right | ||
up | ||
down | ||
f1 | ||
f2 | ||
f3 | ||
f4 | ||
f5 | ||
f6 | ||
f7 | ||
f8 | ||
f9 | ||
f10 | ||
f11 | ||
f12 | ||
home | ||
end | ||
insert | ||
del | ||
pageUp | ||
pageDown | ||
esc | ||
mouseLeft | ||
mouseRight | ||
mouseMiddle | ||
mouseScrlUp | ||
mouseScrlDown |
Codes representing keys on the keyboard and mouse (letters, numbers, functional keys, arrows, ... )
Public Functions Documentation ​
function getKeyString ​
cpp
static inline const char * getKeyString(
int enumVal
)
static inline const char * getKeyString(
int enumVal
)
Public Attributes Documentation ​
variable keyStrings ​
cpp
static constexpr const char *[] keyStrings = {
"key a", "key b", "key c", "key d", "key e", "key f", "key g", "key h", "key i",
"key j", "key k", "key l", "key m", "key n", "key o", "key p", "key q", "key r",
"key s", "key t", "key u", "key v", "key w", "key x", "key y", "key z", "num 1",
"num 2", "num 3", "num 4", "num 5", "num 6", "num 7", "num 8", "num 9", "num 0",
"altr", "altl", "ctrll", "ctrlr", "shiftl", "shiftr", "left", "right", "up",
"down", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8",
"f9", "f10", "f11", "f12", "home", "end", "insert", "del", "pageUp",
"pageDown", "esc", "mouseLeft", "mouseRight", "mouseMiddle", "mouseScrlUp", "mouseScrlDown"};
static constexpr const char *[] keyStrings = {
"key a", "key b", "key c", "key d", "key e", "key f", "key g", "key h", "key i",
"key j", "key k", "key l", "key m", "key n", "key o", "key p", "key q", "key r",
"key s", "key t", "key u", "key v", "key w", "key x", "key y", "key z", "num 1",
"num 2", "num 3", "num 4", "num 5", "num 6", "num 7", "num 8", "num 9", "num 0",
"altr", "altl", "ctrll", "ctrlr", "shiftl", "shiftr", "left", "right", "up",
"down", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8",
"f9", "f10", "f11", "f12", "home", "end", "insert", "del", "pageUp",
"pageDown", "esc", "mouseLeft", "mouseRight", "mouseMiddle", "mouseScrlUp", "mouseScrlDown"};
Updated on 2025-05-31 at 12:55:30 +0000