From e99a43868a83d5931e1f7c4600c244484e1487e6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Aug 2011 18:16:48 +0000 Subject: Do not treat joystick buttons as mouse clicks in the ui main event handler. --- src/ui/ui.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/ui.cc') 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) { -- cgit v1.2.3