Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
EKeyCode.h
Go to the documentation of this file.
1#pragma once
2
3#include <Common/primitive_type.h>
4
5namespace ph::editor
6{
7
8enum class EKeyCode : uint8
9{
10 // Unknow/unsupported key
11 Unknown = 0,
12
13 // F<X> keys
14 F1 = 1,
15 F2 = 2,
16 F3 = 3,
17 F4 = 4,
18 F5 = 5,
19 F6 = 6,
20 F7 = 7,
21 F8 = 8,
22 F9 = 9,
23 F10 = 10,
24 F11 = 11,
25 F12 = 12,
26
27 // Characters
28 A = 20,
29 B = 21,
30 C = 22,
31 D = 23,
32 E = 24,
33 F = 25,
34 G = 26,
35 H = 27,
36 I = 28,
37 J = 29,
38 K = 30,
39 L = 31,
40 M = 32,
41 N = 33,
42 O = 34,
43 P = 35,
44 Q = 36,
45 R = 37,
46 S = 38,
47 T = 39,
48 U = 40,
49 V = 41,
50 W = 42,
51 X = 43,
52 Y = 44,
53 Z = 45,
54
55 Space = 46,
56 Apostrophe = 47,/* ' */
57 Comma = 48,/* , */
58 Minus = 49,/* - */
59 Period = 50,/* . */
60 Slash = 51,/* / */
61 Semicolon = 52,/* ; */
62 Equal = 53,/* = */
63 LeftBracket = 54,/* [ */
64 Backslash = 55,/* \ */
65 RightBracket = 56,/* ] */
66 GraveAccent = 57,/* ` */
67
68 // Common functional keys
69 Escape = 60,
70 Enter = 61,
71 Tab = 62,
72 Backspace = 63,
73 Insert = 64,
74 Delete = 65,
75 Right = 66,
76 Left = 67,
77 Down = 68,
78 Up = 69,
79 PageUp = 70,
80 PageDown = 71,
81 Home = 72,
82 End = 73,
83 CapsLock = 74,
84 ScrollLock = 75,
85 NumLock = 76,
86 PrintScreen = 77,
87 Pause = 78,
88 LeftShift = 79,
89 LeftControl = 80,
90 LeftAlt = 81,
91 LeftSuper = 82,
92 RightShift = 83,
93 RightControl = 84,
94 RightAlt = 85,
95 RightSuper = 86,
96 Menu = 87,
97
98 // Keypad keys
99 K0 = 90,
100 K1 = 91,
101 K2 = 92,
102 K3 = 93,
103 K4 = 94,
104 K5 = 95,
105 K6 = 96,
106 K7 = 97,
107 K8 = 98,
108 K9 = 99,
109 KDecimal = 100,
110 KDivide = 101,
111 KMultiply = 102,
112 KSubtract = 103,
113 KAdd = 104,
114 KEnter = 105,
115 KEqual = 106,
116
117 // Number keys (normally below F<X> keys)
118 D0 = 110,/* 0 */
119 D1 = 111,/* 1 */
120 D2 = 112,/* 2 */
121 D3 = 113,/* 3 */
122 D4 = 114,/* 4 */
123 D5 = 115,/* 5 */
124 D6 = 116,/* 6 */
125 D7 = 117,/* 7 */
126 D8 = 118,/* 8 */
127 D9 = 119,/* 9 */
128
129 // Number of values
130 Num,
131};// end EKeyCode
132
133}// end namespace ph::editor
Definition ph_editor.h:10
EKeyCode
Definition EKeyCode.h:9