Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-08-28 18:16:48 +0000
committerStijn Buys <ingar@osirion.org>2011-08-28 18:16:48 +0000
commite99a43868a83d5931e1f7c4600c244484e1487e6 (patch)
treeb5cd21bcf9a94a84af1dde8e9bb9e33d75bf7c68 /src/ui
parent5fbcaf2e42228f38941bc24b8ab193a74a9e6422 (diff)
Do not treat joystick buttons as mouse clicks in the ui main event handler.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/ui.cc b/src/ui/ui.cc
index 459a2a0..93b5e16 100644
--- a/src/ui/ui.cc
+++ b/src/ui/ui.cc
@@ -515,7 +515,8 @@ bool UI::input_key(const bool pressed, const int key, const unsigned int modifie
handled = f->event_key(pressed, key, modifier);
}
ui_input_focus = f;
- } else {
+
+ } else if (key < 564) {
// mouse buttons
Widget *f = find_mouse_focus(mouse_cursor);
if (f) {