VIDEO: minor helper function to check if a key is currently pressed

master
Martin Gerhardy 2022-04-28 19:33:59 +02:00
parent 101abfa754
commit bcf6755c19
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ protected:
virtual bool handleSDLEvent(SDL_Event& event);
inline bool isPressed(int32_t key) const { return _keybindingHandler.isPressed(key); };
bool handleKeyPress(int32_t key, int16_t modifier, uint16_t count = 1u);
bool handleKeyRelease(int32_t key, int16_t modifier);