41 case SDL_EVENT_KEY_DOWN:
42 currentKeys[
event.key.scancode] =
true;
44 case SDL_EVENT_KEY_UP:
45 currentKeys[
event.key.scancode] =
false;
47 case SDL_EVENT_MOUSE_MOTION:
48 mousePosition =
Vector2(event.motion.x, event.motion.y);
50 case SDL_EVENT_MOUSE_BUTTON_DOWN:
51 mouseButtonMask |=
event.button.button;
53 case SDL_EVENT_MOUSE_BUTTON_UP:
54 mouseButtonMask &= ~event.button.button;
56 case SDL_EVENT_WINDOW_RESIZED:
57 windowSize =
Vector2u(event.window.data1, event.window.data2);
60 spdlog::warn(
"Unhandled input event {}", event.type);