summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-29 12:58:00 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-29 12:58:00 +0000
commitb2ee6c2da10288415e597d254a7694f7ddccbc78 (patch)
treefb16879dfde52bfd12236546d491c3121e33454c /src/game.h
parent4ed25b1ad7e199a00291ab8dd75d65442002e4ce (diff)
downloadmana-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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h
index fc9376f4..1a7e6433 100644
--- a/src/game.h
+++ b/src/game.h
@@ -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();