5#include <SDL2/SDL_keycode.h>
128 if (
entry._kCode == code) {
129 return entry._sdlKCode;
138 if (
entry._sdlKCode == code) {
152 const Uint8 *state = SDL_GetKeyboardState(
nullptr);
159 const U32 state = SDL_GetMouseState(&x, &y);
164 sdlButton = SDL_BUTTON_LEFT;
167 sdlButton = SDL_BUTTON_RIGHT;
170 sdlButton = SDL_BUTTON_MIDDLE;
173 sdlButton = SDL_BUTTON_X1;
176 sdlButton = SDL_BUTTON_X2;
189 assert(
false &&
"implement me!");
Handle console commands that start with a forward slash.
Project const SceneEntry & entry