#ifndef KEYHANDLER_H #define KEYHANDLER_H #include #include "command.h" class Keyboard{ public: Keyboard(); ~Keyboard(); 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; Command* pressedDown; Command* releasedDown; Command* pressedLeft; Command* pressedRight; }; #endif