00001 #ifndef HEADER_KEYCONTROL_H
00002 #define HEADER_KEYCONTROL_H
00003
00004 #include "SDL.h"
00005
00006
00007
00008
00009 class KeyControl {
00010 private:
00011 SDLKey m_up;
00012 SDLKey m_down;
00013 SDLKey m_left;
00014 SDLKey m_right;
00015 public:
00016 KeyControl();
00017 void setUp(SDLKey key) { m_up = key; }
00018 void setDown(SDLKey key) { m_down = key; }
00019 void setLeft(SDLKey key) { m_left = key; }
00020 void setRight(SDLKey key) { m_right = key; }
00021
00022 SDLKey getUp() const { return m_up; }
00023 SDLKey getDown() const { return m_down; }
00024 SDLKey getLeft() const { return m_left; }
00025 SDLKey getRight() const { return m_right; }
00026 };
00027
00028 #endif