From 272d229094309bc5875287a5063f818c58c5f4f8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 Jan 2009 15:36:15 +0000 Subject: hud widget, drawing code reorganization --- src/client/input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/input.cc') 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); -- cgit v1.2.3