diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:12:12 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:12:12 +0100 |
commit | 210ff1309aa545aa3574d991acc7734a1f268b8e (patch) | |
tree | 6b113c6a6c6bd39b5735526074dc5cb1df8860e4 /src/crepe/facade/SDLContext.h | |
parent | ad5a0e04aec5e9e9cbbd54a665eff748e31bc1dc (diff) |
added keycode conversion
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r-- | src/crepe/facade/SDLContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h index 007092b..ef7161b 100644 --- a/src/crepe/facade/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -8,6 +8,7 @@ #include <string> #include "../api/Sprite.h" +#include "../api/KeyCodes.h" #include "../api/Transform.h" #include "api/Camera.h" @@ -53,6 +54,7 @@ private: * \param running Reference to a boolean flag that controls the main loop. */ void handle_events(bool & running); + Keycode sdl_to_keycode(SDL_Keycode sdlKey); private: //! Will only use get_ticks |