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
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