Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-10 15:36:15 +0000
committerStijn Buys <ingar@osirion.org>2009-01-10 15:36:15 +0000
commit272d229094309bc5875287a5063f818c58c5f4f8 (patch)
treefb9a84748c0a88bfa0e59f63be51455fc239becc /src/client/input.cc
parent44500292f5a964036e9d915a38a2773bf5aa765d (diff)
hud widget, drawing code reorganization
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index a5af430..9293404 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -782,7 +782,7 @@ void frame()
for (Keyboard::iterator it = keyboard->begin(); it != keyboard->end(); it++) {
key = (*it).second;
- if (key && key->pressed()) {
+ if (key && (key->sym() < 512) && key->pressed()) {
if ((key->pressed()+delay < core::application()->time()) && (key->lastpressed()+repeat < core::application()->time())) {
key->key_lastpressed = core::application()->time();
key_pressed(key);