Fix bug in ncurses mouse handling

This commit is contained in:
Maxime Coste 2015-05-11 19:11:02 +01:00
parent 4a843ec8d4
commit 30bec11010

View File

@ -472,7 +472,7 @@ Key NCursesUI::get_key()
if ((ev.bstate & BUTTON1_RELEASED) == BUTTON1_RELEASED) return mouse_release(pos); if ((ev.bstate & BUTTON1_RELEASED) == BUTTON1_RELEASED) return mouse_release(pos);
if ((ev.bstate & wheel_down_mask) == wheel_down_mask) return mouse_wheel_down(pos); if ((ev.bstate & wheel_down_mask) == wheel_down_mask) return mouse_wheel_down(pos);
if ((ev.bstate & wheel_up_mask) == wheel_up_mask) return mouse_wheel_up(pos); if ((ev.bstate & wheel_up_mask) == wheel_up_mask) return mouse_wheel_up(pos);
else return mouse_pos(pos); return mouse_pos(pos);
} }
} }