#ifndef KEYHANDLER_H #define KEYHANDLER_H #include #include "command.h" class KeyHandler{ public: KeyHandler(); ~KeyHandler(); Command* handleEvent( SDL_Event e ); Command* pressed( SDL_Keycode k, Uint16 mod = 0); Command* released( SDL_Keycode k, Uint16 mod = 0); // Modifiers: https://wiki.libsdl.org/SDL_Keymod // Keycodes: https://wiki.libsdl.org/SDL_Keycode private: Command* nop; }; #endif