3 #include <GLFW/glfw3.h> 14 KeyCode_SPACE = GLFW_KEY_SPACE,
15 KeyCode_APOSTROPHE = GLFW_KEY_APOSTROPHE,
16 KeyCode_COMMA = GLFW_KEY_COMMA,
17 KeyCode_MINUS = GLFW_KEY_MINUS,
18 KeyCode_PERIOD = GLFW_KEY_PERIOD,
19 KeyCode_SLASH = GLFW_KEY_SLASH,
20 KeyCode_0 = GLFW_KEY_0,
21 KeyCode_1 = GLFW_KEY_1,
22 KeyCode_2 = GLFW_KEY_2,
23 KeyCode_3 = GLFW_KEY_3,
24 KeyCode_4 = GLFW_KEY_4,
25 KeyCode_5 = GLFW_KEY_5,
26 KeyCode_6 = GLFW_KEY_6,
27 KeyCode_7 = GLFW_KEY_7,
28 KeyCode_8 = GLFW_KEY_8,
29 KeyCode_9 = GLFW_KEY_9,
30 KeyCode_SEMICOLON = GLFW_KEY_SEMICOLON,
31 KeyCode_EQUAL = GLFW_KEY_EQUAL,
32 KeyCode_A = GLFW_KEY_A,
33 KeyCode_B = GLFW_KEY_B,
34 KeyCode_C = GLFW_KEY_C,
35 KeyCode_D = GLFW_KEY_D,
36 KeyCode_E = GLFW_KEY_E,
37 KeyCode_F = GLFW_KEY_F,
38 KeyCode_G = GLFW_KEY_G,
39 KeyCode_H = GLFW_KEY_H,
40 KeyCode_I = GLFW_KEY_I,
41 KeyCode_J = GLFW_KEY_J,
42 KeyCode_K = GLFW_KEY_K,
43 KeyCode_L = GLFW_KEY_L,
44 KeyCode_M = GLFW_KEY_M,
45 KeyCode_N = GLFW_KEY_N,
46 KeyCode_O = GLFW_KEY_O,
47 KeyCode_P = GLFW_KEY_P,
48 KeyCode_Q = GLFW_KEY_Q,
49 KeyCode_R = GLFW_KEY_R,
50 KeyCode_S = GLFW_KEY_S,
51 KeyCode_T = GLFW_KEY_T,
52 KeyCode_U = GLFW_KEY_U,
53 KeyCode_V = GLFW_KEY_V,
54 KeyCode_W = GLFW_KEY_W,
55 KeyCode_X = GLFW_KEY_X,
56 KeyCode_Y = GLFW_KEY_Y,
57 KeyCode_Z = GLFW_KEY_Z,
58 KeyCode_LEFT_BRACKET = GLFW_KEY_LEFT_BRACKET,
59 KeyCode_BACKSLASH = GLFW_KEY_BACKSLASH,
60 KeyCode_RIGHT_BRACKET = GLFW_KEY_RIGHT_BRACKET,
61 KeyCode_GRAVE_ACCENT = GLFW_KEY_GRAVE_ACCENT,
62 KeyCode_WORLD_1 = GLFW_KEY_WORLD_1,
63 KeyCode_WORLD_2 = GLFW_KEY_WORLD_2,
64 KeyCode_ESCAPE = GLFW_KEY_ESCAPE,
65 KeyCode_ENTER = GLFW_KEY_ENTER,
66 KeyCode_TAB = GLFW_KEY_TAB,
67 KeyCode_BACKSPACE = GLFW_KEY_BACKSPACE,
68 KeyCode_INSERT = GLFW_KEY_INSERT,
69 KeyCode_DELETE = GLFW_KEY_DELETE,
70 KeyCode_RIGHT = GLFW_KEY_RIGHT,
71 KeyCode_LEFT = GLFW_KEY_LEFT,
72 KeyCode_DOWN = GLFW_KEY_DOWN,
73 KeyCode_UP = GLFW_KEY_UP,
74 KeyCode_PAGE_UP = GLFW_KEY_PAGE_UP,
75 KeyCode_PAGE_DOWN = GLFW_KEY_PAGE_DOWN,
76 KeyCode_HOME = GLFW_KEY_HOME,
77 KeyCode_END = GLFW_KEY_END,
78 KeyCode_CAPS_LOCK = GLFW_KEY_CAPS_LOCK,
79 KeyCode_SCROLL_LOCK = GLFW_KEY_SCROLL_LOCK,
80 KeyCode_NUM_LOCK = GLFW_KEY_NUM_LOCK,
81 KeyCode_PRINT_SCREEN = GLFW_KEY_PRINT_SCREEN,
82 KeyCode_PAUSE = GLFW_KEY_PAUSE,
83 KeyCode_F1 = GLFW_KEY_F1,
84 KeyCode_F2 = GLFW_KEY_F2,
85 KeyCode_F3 = GLFW_KEY_F3,
86 KeyCode_F4 = GLFW_KEY_F4,
87 KeyCode_F5 = GLFW_KEY_F5,
88 KeyCode_F6 = GLFW_KEY_F6,
89 KeyCode_F7 = GLFW_KEY_F7,
90 KeyCode_F8 = GLFW_KEY_F8,
91 KeyCode_F9 = GLFW_KEY_F9,
92 KeyCode_F10 = GLFW_KEY_F10,
93 KeyCode_F11 = GLFW_KEY_F11,
94 KeyCode_F12 = GLFW_KEY_F12,
95 KeyCode_F13 = GLFW_KEY_F13,
96 KeyCode_F14 = GLFW_KEY_F14,
97 KeyCode_F15 = GLFW_KEY_F15,
98 KeyCode_F16 = GLFW_KEY_F16,
99 KeyCode_F17 = GLFW_KEY_F17,
100 KeyCode_F18 = GLFW_KEY_F18,
101 KeyCode_F19 = GLFW_KEY_F19,
102 KeyCode_F20 = GLFW_KEY_F20,
103 KeyCode_F21 = GLFW_KEY_F21,
104 KeyCode_F22 = GLFW_KEY_F22,
105 KeyCode_F23 = GLFW_KEY_F23,
106 KeyCode_F24 = GLFW_KEY_F24,
107 KeyCode_F25 = GLFW_KEY_F25,
108 KeyCode_KP_0 = GLFW_KEY_KP_0,
109 KeyCode_KP_1 = GLFW_KEY_KP_1,
110 KeyCode_KP_2 = GLFW_KEY_KP_2,
111 KeyCode_KP_3 = GLFW_KEY_KP_3,
112 KeyCode_KP_4 = GLFW_KEY_KP_4,
113 KeyCode_KP_5 = GLFW_KEY_KP_5,
114 KeyCode_KP_6 = GLFW_KEY_KP_6,
115 KeyCode_KP_7 = GLFW_KEY_KP_7,
116 KeyCode_KP_8 = GLFW_KEY_KP_8,
117 KeyCode_KP_9 = GLFW_KEY_KP_9,
118 KeyCode_KP_DECIMAL = GLFW_KEY_KP_DECIMAL,
119 KeyCode_KP_DIVIDE = GLFW_KEY_KP_DIVIDE,
120 KeyCode_KP_MULTIPLY = GLFW_KEY_KP_MULTIPLY,
121 KeyCode_KP_SUBTRACT = GLFW_KEY_KP_SUBTRACT,
122 KeyCode_KP_ADD = GLFW_KEY_KP_ADD,
123 KeyCode_KP_ENTER = GLFW_KEY_KP_ENTER,
124 KeyCode_KP_EQUAL = GLFW_KEY_KP_EQUAL,
125 KeyCode_LEFT_SHIFT = GLFW_KEY_LEFT_SHIFT,
126 KeyCode_LEFT_CONTROL = GLFW_KEY_LEFT_CONTROL,
127 KeyCode_LEFT_ALT = GLFW_KEY_LEFT_ALT,
128 KeyCode_LEFT_SUPER = GLFW_KEY_LEFT_SUPER,
129 KeyCode_RIGHT_SHIFT = GLFW_KEY_RIGHT_SHIFT,
130 KeyCode_RIGHT_CONTROL = GLFW_KEY_RIGHT_CONTROL,
131 KeyCode_RIGHT_ALT = GLFW_KEY_RIGHT_ALT,
132 KeyCode_RIGHT_SUPER = GLFW_KEY_RIGHT_SUPER,
133 KeyCode_MENU = GLFW_KEY_MENU,
KeyCode GlfwKeyToBlowboxKeyCode(int glfw_key)
Converts a GLFW_KEY_* to a KeyCode_*.
Definition: key_code.cc:6
KeyCode
All keycodes.
Definition: key_code.h:12
int BlowboxKeyCodeToGlfwKey(KeyCode key)
Converts a KeyCode_* to a GLFW_KEY_*.
Definition: key_code.cc:137
The main Blowbox namespace.
Definition: image.cc:8