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

Keymap.h

Go to the documentation of this file.
00001 #ifndef HEADER_KEYMAP_H
00002 #define HEADER_KEYMAP_H
00003 
00004 #include "KeyStroke.h"
00005 #include "KeyDesc.h"
00006 
00007 #include "SDL.h"
00008 #include <string>
00009 #include <map>
00010 
00011 /**
00012  * Table of defined keys.
00013  */
00014 class Keymap {
00015     private:
00016         typedef std::map<KeyStroke,KeyDesc,stroke_less> t_keys;
00017         t_keys m_keys;
00018     public:
00019         void registerKey(const KeyStroke &stroke, const KeyDesc &desc);
00020         int indexPressed(const KeyStroke &stroke) const;
00021 };
00022 
00023 #endif

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