24 #ifndef INPUT_KEYBOARDCONFIG_H
25 #define INPUT_KEYBOARDCONFIG_H
34 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
35 #include <SDL_events.h>
38 #include "sdlshared.h"
86 return event.key.keysym.scancode;
89 return event.key.keysym.sym;
97 return event.key.keysym.scancode;
100 if (event.key.keysym.sym != 0U)
101 return CAST_S32(event.key.keysym.sym);
102 else if (event.key.keysym.scancode > 1)
103 return -
event.key.keysym.scancode;
InputActionT getActionId(const SDL_Event &event)
static std::string getKeyShortString(const std::string &key)
KeyToActionMap mKeyToAction
void resetRepeat(const int key)
static InputActionT getKeyIndex(const SDL_Event &event, const int grp)
static SDLKey getKeyFromEvent(const SDL_Event &event)
void setEnabled(const bool flag)
void handleActivateKey(const SDL_Event &event)
void handleRepeat(const int time)
KeysVector * getActionVector(const SDL_Event &event)
const uint8_t * mActiveKeys
bool isActionActive(const InputActionT index) const
KeysVector * getActionVectorByKey(const int i)
static std::string getKeyName(const int key)
static int getKeyValueFromEvent(const SDL_Event &event)
void handleDeActicateKey(const SDL_Event &event)
#define A_DELETE_COPY(func)