diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-22 21:17:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-22 21:17:15 +0000 |
commit | 540b500f2176966ebfb7f21ebd2c17ddfdcd34e6 (patch) | |
tree | e31bbf0046237b5134002f51d48c1b3f5b752f4f /src/client/keyboard.h | |
parent | 9adc3720cd8fe2ba843d014dbbfe81bf936f9715 (diff) |
keyboard key repeat
Diffstat (limited to 'src/client/keyboard.h')
-rw-r--r-- | src/client/keyboard.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/keyboard.h b/src/client/keyboard.h index 9712009..e4995e6 100644 --- a/src/client/keyboard.h +++ b/src/client/keyboard.h @@ -61,15 +61,18 @@ public: Key *press(unsigned int sym); /// a key has been pressed + Key *press(Key *key); + + /// a key has been pressed Key *release(unsigned int sym); -private: typedef std::map<unsigned int, Key *>::iterator iterator; - + inline iterator begin() { return keys.begin(); } inline iterator end() { return keys.end(); } +private: void add_key(const char *name, const unsigned int keysym, const char ascii=0, const char *bind=0); void add_action(const char *name, Action::Identifier action, const char *info = 0); |