JustEnoughMod
Loading...
Searching...
No Matches
Key.hpp
1#ifndef EVENT_KEY_HPP
2#define EVENT_KEY_HPP
3
4#include <GLFW/glfw3.h>
5
6namespace JEM {
7
8 enum class Mouse {
9 Last = GLFW_MOUSE_BUTTON_4,
10 Next = GLFW_MOUSE_BUTTON_5,
11 Left = GLFW_MOUSE_BUTTON_LEFT,
12 Right = GLFW_MOUSE_BUTTON_RIGHT,
13 Middle = GLFW_MOUSE_BUTTON_MIDDLE
14 };
15
16 enum class Key {
17 Space = GLFW_KEY_SPACE,
18 Apostrophe = GLFW_KEY_APOSTROPHE,
19 Comma = GLFW_KEY_COMMA,
20 Minus = GLFW_KEY_MINUS,
21 Period = GLFW_KEY_PERIOD,
22 Slash = GLFW_KEY_SLASH,
23 Key0 = GLFW_KEY_0,
24 Key1 = GLFW_KEY_1,
25 Key2 = GLFW_KEY_2,
26 Key3 = GLFW_KEY_3,
27 Key4 = GLFW_KEY_4,
28 Key5 = GLFW_KEY_5,
29 Key6 = GLFW_KEY_6,
30 Key7 = GLFW_KEY_7,
31 Key8 = GLFW_KEY_8,
32 Key9 = GLFW_KEY_9,
33 Semicolon = GLFW_KEY_SEMICOLON,
34 Equal = GLFW_KEY_EQUAL,
35 KeyA = GLFW_KEY_A,
36 KeyB = GLFW_KEY_B,
37 KeyC = GLFW_KEY_C,
38 KeyD = GLFW_KEY_D,
39 KeyE = GLFW_KEY_E,
40 KeyF = GLFW_KEY_F,
41 KeyG = GLFW_KEY_G,
42 KeyH = GLFW_KEY_H,
43 KeyI = GLFW_KEY_I,
44 KeyJ = GLFW_KEY_J,
45 KeyK = GLFW_KEY_K,
46 KeyL = GLFW_KEY_L,
47 KeyM = GLFW_KEY_M,
48 KeyN = GLFW_KEY_N,
49 KeyO = GLFW_KEY_O,
50 KeyP = GLFW_KEY_P,
51 KeyQ = GLFW_KEY_Q,
52 KeyR = GLFW_KEY_R,
53 KeyS = GLFW_KEY_S,
54 KeyT = GLFW_KEY_T,
55 KeyU = GLFW_KEY_U,
56 KeyV = GLFW_KEY_V,
57 KeyW = GLFW_KEY_W,
58 KeyX = GLFW_KEY_X,
59 KeyY = GLFW_KEY_Y,
60 KeyZ = GLFW_KEY_Z,
61 LeftBracket = GLFW_KEY_LEFT_BRACKET,
62 Backslash = GLFW_KEY_BACKSLASH,
63 RightBracket = GLFW_KEY_RIGHT_BRACKET,
64 GraveAccent = GLFW_KEY_GRAVE_ACCENT,
65 Escape = GLFW_KEY_ESCAPE,
66 Enter = GLFW_KEY_ENTER,
67 Tab = GLFW_KEY_TAB,
68 Backspace = GLFW_KEY_BACKSPACE,
69 Insert = GLFW_KEY_INSERT,
70 Delete = GLFW_KEY_DELETE,
71 Right = GLFW_KEY_RIGHT,
72 Left = GLFW_KEY_LEFT,
73 Down = GLFW_KEY_DOWN,
74 Up = GLFW_KEY_UP,
75 PageUp = GLFW_KEY_PAGE_UP,
76 PageDown = GLFW_KEY_PAGE_DOWN,
77 Home = GLFW_KEY_HOME,
78 End = GLFW_KEY_END,
79 CapsLock = GLFW_KEY_CAPS_LOCK,
80 ScrollLock = GLFW_KEY_SCROLL_LOCK,
81 NumLock = GLFW_KEY_NUM_LOCK,
82 PrintScreen = GLFW_KEY_PRINT_SCREEN,
83 Pause = GLFW_KEY_PAUSE,
84 F1 = GLFW_KEY_F1,
85 F2 = GLFW_KEY_F2,
86 F3 = GLFW_KEY_F3,
87 F4 = GLFW_KEY_F4,
88 F5 = GLFW_KEY_F5,
89 F6 = GLFW_KEY_F6,
90 F7 = GLFW_KEY_F7,
91 F8 = GLFW_KEY_F8,
92 F9 = GLFW_KEY_F9,
93 F10 = GLFW_KEY_F10,
94 F11 = GLFW_KEY_F11,
95 F12 = GLFW_KEY_F12,
96 F13 = GLFW_KEY_F13,
97 F14 = GLFW_KEY_F14,
98 F15 = GLFW_KEY_F15,
99 F16 = GLFW_KEY_F16,
100 F17 = GLFW_KEY_F17,
101 F18 = GLFW_KEY_F18,
102 F19 = GLFW_KEY_F19,
103 F20 = GLFW_KEY_F20,
104 F21 = GLFW_KEY_F21,
105 F22 = GLFW_KEY_F22,
106 F23 = GLFW_KEY_F23,
107 F24 = GLFW_KEY_F24,
108 Num0 = GLFW_KEY_KP_0,
109 Num1 = GLFW_KEY_KP_1,
110 Num2 = GLFW_KEY_KP_2,
111 Num3 = GLFW_KEY_KP_3,
112 Num4 = GLFW_KEY_KP_4,
113 Num5 = GLFW_KEY_KP_5,
114 Num6 = GLFW_KEY_KP_6,
115 Num7 = GLFW_KEY_KP_7,
116 Num8 = GLFW_KEY_KP_8,
117 Num9 = GLFW_KEY_KP_9,
118 NumDecimal = GLFW_KEY_KP_DECIMAL,
119 NumDivide = GLFW_KEY_KP_DIVIDE,
120 NumMultiply = GLFW_KEY_KP_MULTIPLY,
121 NumSubtract = GLFW_KEY_KP_SUBTRACT,
122 NumAdd = GLFW_KEY_KP_ADD,
123 NumEnter = GLFW_KEY_KP_ENTER,
124 NumEqual = GLFW_KEY_KP_EQUAL,
125 LeftShift = GLFW_KEY_LEFT_SHIFT,
126 LeftControl = GLFW_KEY_LEFT_CONTROL,
127 LeftAlt = GLFW_KEY_LEFT_ALT,
128 LeftSuper = GLFW_KEY_LEFT_SUPER,
129 RightShift = GLFW_KEY_RIGHT_SHIFT,
130 RightControl = GLFW_KEY_RIGHT_CONTROL,
131 RightAlt = GLFW_KEY_RIGHT_ALT,
132 RightSuper = GLFW_KEY_RIGHT_SUPER,
133 Menu = GLFW_KEY_MENU
134 };
135} // namespace JEM
136
137#endif