10 #ifndef KEY_DEFINITIONS_HPP
11 #define KEY_DEFINITIONS_HPP
14 #include <SDL_scancode.h>
17 #define CONSOLE_TOGGLE_KEY '`'
23 enum class key : uint8_t {
24 UNKNOWN = SDL_SCANCODE_UNKNOWN,
31 LEFT = SDL_SCANCODE_LEFT,
32 RIGHT = SDL_SCANCODE_RIGHT,
34 DOWN = SDL_SCANCODE_DOWN,
63 THREE = SDL_SCANCODE_3,
64 FOUR = SDL_SCANCODE_4,
65 FIVE = SDL_SCANCODE_5,
67 SEVEN = SDL_SCANCODE_7,
68 EIGHT = SDL_SCANCODE_8,
69 NINE = SDL_SCANCODE_9,
70 ZERO = SDL_SCANCODE_0,
71 ESCAPE = SDL_SCANCODE_ESCAPE,
72 ENTER = SDL_SCANCODE_RETURN,
73 SPACEBAR = SDL_SCANCODE_SPACE,
74 TILDE = SDL_SCANCODE_GRAVE,
75 LSHIFT = SDL_SCANCODE_LSHIFT,
76 BACKSPACE = SDL_SCANCODE_BACKSPACE,
77 BACKSLASH = SDL_SCANCODE_BACKSLASH,
78 CAPSLOCK = SDL_SCANCODE_CAPSLOCK,
79 COMMA = SDL_SCANCODE_COMMA,
80 EQUALS = SDL_SCANCODE_EQUALS,
81 LALT = SDL_SCANCODE_LALT,
82 LCTRL = SDL_SCANCODE_LCTRL,
83 LBRACKET = SDL_SCANCODE_LEFTBRACKET,
84 RBRACKET = SDL_SCANCODE_RIGHTBRACKET,
85 MINUS = SDL_SCANCODE_MINUS,
86 RALT = SDL_SCANCODE_RALT,
87 RCTRL = SDL_SCANCODE_RCTRL,
88 SEMICOLON = SDL_SCANCODE_SEMICOLON,
89 SLASH = SDL_SCANCODE_SLASH,
90 TAB = SDL_SCANCODE_TAB,
91 DELETE = SDL_SCANCODE_DELETE,
94 CONTROLLER_BUTTON_A = 153,
95 CONTROLLER_BUTTON_B = 154,
96 CONTROLLER_BUTTON_X = 155,
97 CONTROLLER_BUTTON_Y = 156,
98 CONTROLLER_BUTTON_SELECT = 157,
99 CONTROLLER_BUTTON_START = 158,
100 CONTROLLER_BUTTON_LEFTSTICK = 159,
101 CONTROLLER_BUTTON_RIGHTSTICK = 160,
102 CONTROLLER_BUTTON_LEFTSHOULDER = 161,
103 CONTROLLER_BUTTON_RIGHTSHOULDER = 162,
104 CONTROLLER_BUTTON_DPAD_UP = 163,
105 CONTROLLER_BUTTON_DPAD_DOWN = 164,
106 CONTROLLER_BUTTON_DPAD_LEFT = 165,
107 CONTROLLER_BUTTON_DPAD_RIGHT = 166,
108 CONTROLLER_BUTTON_LEFT_TRIGGER = 167,
109 CONTROLLER_BUTTON_RIGHT_TRIGGER = 168,