Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
key_code.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5enum class KeyCode : std::uint8_t {
6 // Letters
7 a,
8 b,
9 c,
10 d,
11 e,
12 f,
13 g,
14 h,
15 i,
16 j,
17 k,
18 l,
19 m,
20 n,
21 o,
22 p,
23 q,
24 r,
25 s,
26 t,
27 u,
28 v,
29 w,
30 x,
31 y,
32 z,
33
34 // Numbers (top row)
35 num_0,
36 num_1,
37 num_2,
38 num_3,
39 num_4,
40 num_5,
41 num_6,
42 num_7,
43 num_8,
44 num_9,
45
46 // Function keys
47 f1,
48 f2,
49 f3,
50 f4,
51 f5,
52 f6,
53 f7,
54 f8,
55 f9,
56 f10,
57 f11,
58 f12,
59
60 // Modifiers
70
71 // Navigation and main keys
72 escape,
73 tab,
74 enter,
75 space,
77 insert,
79 home,
80 end,
81 page_up,
87
88 // Symbols and punctuation
89 grave_accent, // `
90 minus, // -
91 equal, // =
92 left_bracket, // [
93 right_bracket, // ]
94 backslash, // \
95 semicolon, // ;
96 apostrophe, // '
97 comma, // ,
98 period, // .
99 slash, // /
100
101 // Numpad
102 kp_0,
103 kp_1,
104 kp_2,
105 kp_3,
106 kp_4,
107 kp_5,
108 kp_6,
109 kp_7,
110 kp_8,
111 kp_9,
113 kp_divide,
116 kp_add,
117 kp_enter,
118 kp_equal,
119
120 // Fallback
121 unknown
122};
KeyCode
Definition key_code.h:5
@ left_bracket
@ right_control
@ right_bracket
@ grave_accent
@ left_control