sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
application
input_keycodes.h
Go to the documentation of this file.
1
/*!****************************************************************/
/*!*
2
* \file input_system_key_codes.h
3
* \brief INput system key codes enum class definition module.
4
*
5
* \author Sabitov Kirill
6
* \date 03 July 2022
7
*********************************************************************/
8
9
#pragma once
10
11
namespace
scl
12
{
14
enum class
keycode
:
int
15
{
16
UNKNOWN
= -1,
17
SPACE
= 32,
18
A
= 65,
19
B
= 66,
20
C
= 67,
21
D
= 68,
22
E = 69,
23
F
= 70,
24
G
= 71,
25
H
= 72,
26
I
= 73,
27
J
= 74,
28
K
= 75,
29
L
= 76,
30
M
= 77,
31
N
= 78,
32
O
= 79,
33
P
= 80,
34
Q
= 81,
35
R
= 82,
36
S
= 83,
37
T
= 84,
38
U
= 85,
39
V
= 86,
40
W
= 87,
41
X
= 88,
42
Y
= 89,
43
Z
= 90,
44
#ifdef SCL_PLATFORM_WINDOWS
45
LBUTTON = 0x01,
46
RBUTTON = 0x02,
47
MBUTTON = 0x04,
48
BACK
= 0x08,
49
TAB = 0x09,
50
RETURN = 0x0D,
51
SHIFT = 0x10,
52
CONTROL = 0x11,
53
ESCAPE = 0x1B,
54
END = 0x23,
55
HOME = 0x24,
56
LEFT
= 0x25,
57
UP = 0x26,
58
RIGHT
= 0x27,
59
DOWN = 0x28,
60
INSERT = 0x2D,
61
DEL = 0x2E,
62
HELP = 0x2F,
63
MULTIPLY = 0x6A,
64
ADD = 0x6B,
65
SEPARATOR = 0x6C,
66
SUBTRACT = 0x6D,
67
DIVIDE = 0x6F,
68
F1
= 0x70,
69
F2
= 0x71,
70
F3
= 0x72,
71
F4
= 0x73,
72
F5
= 0x74,
73
F6
= 0x75,
74
F7
= 0x76,
75
F8
= 0x77,
76
F9
= 0x78,
77
F10
= 0x79,
78
F11
= 0x7A,
79
F12
= 0x7B,
80
F13
= 0x7C,
81
F14
= 0x7D,
82
F15
= 0x7E,
83
F16
= 0x7F,
84
F17
= 0x80,
85
F18
= 0x81,
86
F19
= 0x82,
87
F20
= 0x83,
88
F21
= 0x84,
89
F22
= 0x85,
90
F23
= 0x86,
91
F24
= 0x87,
92
#else
// GLFW...
93
F1
= 290,
94
F2
= 291,
95
F3
= 292,
96
F4
= 293,
97
F5
= 294,
98
F6
= 295,
99
F7
= 296,
100
F8
= 297,
101
F9
= 298,
102
F10
= 299,
103
F11
= 300,
104
F12
= 301,
105
F13
= 302,
106
F14
= 303,
107
F15
= 304,
108
F16
= 305,
109
F17
= 306,
110
F18
= 307,
111
F19
= 308,
112
F20
= 309,
113
F21
= 310,
114
F22
= 311,
115
F23
= 312,
116
F24
= 313,
117
F25
= 314,
118
#endif
119
};
120
}
scl
Definition:
base.h:33
scl::mouse_button::RIGHT
@ RIGHT
scl::mouse_button::LEFT
@ LEFT
scl::render_cull_face_mode::BACK
@ BACK
scl::keycode
keycode
Definition:
input_keycodes.h:15
scl::keycode::X
@ X
scl::keycode::C
@ C
scl::keycode::F6
@ F6
scl::keycode::Z
@ Z
scl::keycode::F14
@ F14
scl::keycode::F5
@ F5
scl::keycode::P
@ P
scl::keycode::F7
@ F7
scl::keycode::F8
@ F8
scl::keycode::F3
@ F3
scl::keycode::U
@ U
scl::keycode::V
@ V
scl::keycode::F16
@ F16
scl::keycode::Y
@ Y
scl::keycode::S
@ S
scl::keycode::W
@ W
scl::keycode::F11
@ F11
scl::keycode::SPACE
@ SPACE
scl::keycode::M
@ M
scl::keycode::UNKNOWN
@ UNKNOWN
scl::keycode::F21
@ F21
scl::keycode::F22
@ F22
scl::keycode::A
@ A
scl::keycode::F
@ F
scl::keycode::F18
@ F18
scl::keycode::F23
@ F23
scl::keycode::F9
@ F9
scl::keycode::N
@ N
scl::keycode::F13
@ F13
scl::keycode::B
@ B
scl::keycode::K
@ K
scl::keycode::F25
@ F25
scl::keycode::F10
@ F10
scl::keycode::T
@ T
scl::keycode::H
@ H
scl::keycode::F19
@ F19
scl::keycode::L
@ L
scl::keycode::I
@ I
scl::keycode::G
@ G
scl::keycode::F1
@ F1
scl::keycode::R
@ R
scl::keycode::F15
@ F15
scl::keycode::F4
@ F4
scl::keycode::F12
@ F12
scl::keycode::F24
@ F24
scl::keycode::Q
@ Q
scl::keycode::O
@ O
scl::keycode::D
@ D
scl::keycode::F20
@ F20
scl::keycode::F2
@ F2
scl::keycode::J
@ J
scl::keycode::F17
@ F17
Generated by
1.9.4