00001 
#ifndef DEF_INPUT_H
00002 
#define DEF_INPUT_H 1
00003 
00004 
#define SHIFT_SPEED 10
00005 
00012 class InputHandler {
00013     
public:
00014         
InputHandler();
00015         ~
InputHandler();
00017         
void update();
00018         
bool keyPressed(ConfigKey key);
00019         
bool keyState(ConfigKey key);
00020     
private:
00022         Mix_Chunk* au_pause;
00023         Uint8* keystate;
00024         
bool keypressed[SDLK_LAST];
00025     
private:
00026         SDL_Event event;
00028         
inline void pollGameEvents();
00030         
inline void pollPausedEvents();
00032         
inline void pollMenuEvents();
00034         
inline void pollEditEvents();
00035 };
00036 
00037 
#endif