diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-29 12:58:00 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-29 12:58:00 +0000 |
commit | b2ee6c2da10288415e597d254a7694f7ddccbc78 (patch) | |
tree | fb16879dfde52bfd12236546d491c3121e33454c /src/game.h | |
parent | 4ed25b1ad7e199a00291ab8dd75d65442002e4ce (diff) | |
download | mana-b2ee6c2da10288415e597d254a7694f7ddccbc78.tar.gz mana-b2ee6c2da10288415e597d254a7694f7ddccbc78.tar.bz2 mana-b2ee6c2da10288415e597d254a7694f7ddccbc78.tar.xz mana-b2ee6c2da10288415e597d254a7694f7ddccbc78.zip |
Subclassed AllegroInput to intercept shortcuts.
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -75,6 +75,14 @@ extern unsigned short src_x, src_y, x, y; extern volatile int tick_time; extern int server_tick; +/** + * Handle a key press. + * + * @return <code>true</code> when the key is used, <code>false</code> + * otherwise. + */ +bool handle_key(int unicode, int scancode); + void game(); void do_init(); void do_input(); |