diff options
Diffstat (limited to 'main/events.cpp')
| -rw-r--r-- | main/events.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/events.cpp b/main/events.cpp index 11076b54..17db862f 100644 --- a/main/events.cpp +++ b/main/events.cpp @@ -3,7 +3,7 @@ #include "floormat/events.hpp" #include <cstring> #include <SDL_events.h> -//#include <SDL_video.h> +#include <SDL_keyboard.h> namespace floormat { @@ -104,4 +104,9 @@ void main_impl::anyEvent(SDL_Event& event) return app.on_any_event(make_any_event(event)); } +int floormat_main::get_mods() noexcept +{ + return (int)SDL_GetModState(); +} + } // namespace floormat |
