Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

keyboardmessage.hh

Go to the documentation of this file.
00001 #ifndef _keyboardmessage_hh_
00002 #define _keyboardmessage_hh_
00003 
00004 #include <SDL/SDL.h>
00005 #include "message.hh"
00006 
00007 class KeyboardMessage: public anoid::base::Message {
00008     private:
00009         SDL_keysym sym;
00010         bool up;
00011     public:
00012         void setKey(SDL_keysym &keysym) { sym = keysym; }
00013         SDL_keysym getKey() { return sym; }
00014         void setUp() { up = true; }
00015         void setDown() { up = false; }
00016         bool getUp() { return up; }
00017         bool getDown() { return !up; }
00018         KeyboardMessage();
00019 };
00020 
00021 #endif

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen