Mountain  1.0.0
Simple C++ 2D Game Framework
keyboard_input.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Mountain/core.hpp"
4 
7 
8 namespace Mountain
9 {
11  enum class Key : uint16_t
12  {
13  /* Printable keys */
15  Space = 32,
17  Apostrophe = 39,
19  Comma = 44,
21  Minus = 45,
23  Period = 46,
25  Slash = 47,
27  Key0 = 48,
29  Key1 = 49,
31  Key2 = 50,
33  Key3 = 51,
35  Key4 = 52,
37  Key5 = 53,
39  Key6 = 54,
41  Key7 = 55,
43  Key8 = 56,
45  Key9 = 57,
47  Semicolon = 59,
49  Equal = 61,
51  A = 65,
53  B = 66,
55  C = 67,
57  D = 68,
59  E = 69,
61  F = 70,
63  G = 71,
65  H = 72,
67  I = 73,
69  J = 74,
71  K = 75,
73  L = 76,
75  M = 77,
77  N = 78,
79  O = 79,
81  P = 80,
83  Q = 81,
85  R = 82,
87  S = 83,
89  T = 84,
91  U = 85,
93  V = 86,
95  W = 87,
97  X = 88,
99  Y = 89,
101  Z = 90,
102 
104  LeftBracket = 91,
106  Backslash = 92,
108  RightBracket = 93,
110  GraveAccent = 96,
112  World1 = 161,
114  World2 = 162,
115 
116 
117  /* Function keys */
119  Escape = 256,
121  Enter = 257,
123  Tab = 258,
125  Backspace = 259,
127  Insert = 260,
129  Delete = 261,
131  Right = 262,
133  Left = 263,
135  Down = 264,
137  Up = 265,
139  PageUp = 266,
141  PageDown = 267,
143  Home = 268,
145  End = 269,
147  CapsLock = 280,
149  ScrollLock = 281,
151  NumLock = 282,
153  PrintScreen = 283,
155  Pause = 284,
157  F1 = 290,
159  F2 = 291,
161  F3 = 292,
163  F4 = 293,
165  F5 = 294,
167  F6 = 295,
169  F7 = 296,
171  F8 = 297,
173  F9 = 298,
175  F10 = 299,
177  F11 = 300,
179  F12 = 301,
181  F13 = 302,
183  F14 = 303,
185  F15 = 304,
187  F16 = 305,
189  F17 = 306,
191  F18 = 307,
193  F19 = 308,
195  F20 = 309,
197  F21 = 310,
199  F22 = 311,
201  F23 = 312,
203  F24 = 313,
205  F25 = 314,
207  Kp0 = 320,
209  Kp1 = 321,
211  Kp2 = 322,
213  Kp3 = 323,
215  Kp4 = 324,
217  Kp5 = 325,
219  Kp6 = 326,
221  Kp7 = 327,
223  Kp8 = 328,
225  Kp9 = 329,
227  KpDecimal = 330,
229  KpDivide = 331,
231  KpMultiply = 332,
233  KpSubtract = 333,
235  KpAdd = 334,
237  KpEnter = 335,
239  KpEqual = 336,
241  LeftShift = 340,
243  LeftControl = 341,
245  LeftAlt = 342,
247  LeftSuper = 343,
249  RightShift = 344,
251  RightControl = 345,
253  RightAlt = 346,
255  RightSuper = 347,
257  Menu = 348,
258 
259  None = 355,
260 
261  Count
262  };
263 
265  enum class KeyStatus : uint8_t
266  {
268  Pressed,
270  Down,
272  Release,
274  Repeat
275  };
276 }
KeyStatus
List of keyboard button states
Keypad Decimal.
World2 non-US #2.
Keypad Multiply.
World1 non-US #1.
Key
List of keyboard buttons
Keypad Subtract.
Contains all declarations of the Mountain Framework.
Definition: audio.hpp:22