diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-09 11:41:16 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-09 11:41:16 +0100 |
commit | e3318b7e0e075567a6a9e29239e074f4e02fc595 (patch) | |
tree | 53b3f263f40636ca989e421a9aa942a61cc08802 /src/crepe/facade/SDLContext.h | |
parent | 588df868d851ac5195ce3380ab38c59b0e2aed7a (diff) |
made getKeyboardState
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r-- | src/crepe/facade/SDLContext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h index 1f83985..0f503f3 100644 --- a/src/crepe/facade/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -152,7 +152,8 @@ private: * \return The corresponding `Keycode` value or `Keycode::NONE` if the key is unrecognized. */ Keycode sdl_to_keycode(SDL_Keycode sdl_key); - + static const std::array<Keycode, SDL_NUM_SCANCODES>& get_lookup_table(); + std::array<Keycode, SDL_NUM_SCANCODES> get_keyboard_state(); /** * \brief Converts an SDL mouse button code to the custom MouseButton type. * |