#include "keyboard.h" Keyboard::Keyboard(){ nop = new Nop; } Keyboard::~Keyboard(){ delete nop; } Command* Keyboard::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* Keyboard::pressed( SDL_Keycode k, Uint16 mod ){ // TODO return nop; } Command* Keyboard::released( SDL_Keycode k, Uint16 mod ){ // TODO return nop; }