#include "keyHandler.h" KeyHandler::KeyHandler(){ nop = new Nop; } KeyHandler::~KeyHandler(){ delete nop; } Command* KeyHandler::handleEvent( SDL_Event e ){ switch( e.type ){ case SDL_KEYDOWN: return pressed( e.key.keysym.sym, e.key.keysym.mod ); case SDL_KEYUP: return released( e.key.keysym.sym, e.key.keysym.mod ); default: return nop; } } Command* KeyHandler::pressed( SDL_Keycode k, Uint16 mod ){ // TODO return nop; } Command* KeyHandler::released( SDL_Keycode k, Uint16 mod ){ // TODO return nop; }