Potato Engine
Loading...
Searching...
No Matches
Input.hpp
Go to the documentation of this file.
1
2#pragma once
3
8
14enum class Keycode
15{
16 UNKNOWN = 0,
17
18 // ASCII
19 A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
20 Num0, Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9,
21
22 // SPECIAL
23 Space,
24 Enter,
25 Escape,
26 Tab,
27
28 // ARROWS
29 ArrowUp,
30 ArrowDown,
31 ArrowLeft,
32 ArrowRight,
33
34 // FUNCTION KEYS
35 F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
36
37 // MOUSE
38 Mouse
39};
40
41struct __KeycodeHash {
42 size_t operator ()(const Keycode& key) const noexcept{
43 return static_cast<size_t>(key);
44 }
45};
46
51enum class InputType
52{
53 Triggered,
54 Ongoing,
55 Completed
56};
InputType
Enum representing input states.
Definition Input.hpp:52
Keycode
Enum representing input keys.
Definition Input.hpp:15