Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

KeyBinder.h

Go to the documentation of this file.
00001 #ifndef HEADER_KEYBINDER_H
00002 #define HEADER_KEYBINDER_H
00003 
00004 class BaseMsg;
00005 
00006 #include "NoCopy.h"
00007 #include "KeyStroke.h"
00008 
00009 #include <map>
00010 
00011 /**
00012  * Key binder.
00013  */
00014 class KeyBinder : public NoCopy {
00015     private:
00016         typedef std::map<KeyStroke,BaseMsg*,stroke_less> t_strokes;
00017         t_strokes m_strokes;
00018     public:
00019         ~KeyBinder();
00020 
00021         void addStroke(const KeyStroke &stroke, BaseMsg *msg);
00022         void removeStroke(const KeyStroke &stroke);
00023 
00024         void keyDown(const SDL_keysym &keysym) const;
00025 };
00026 
00027 #endif

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2