Browse Source

Reset extra mouse axes on each event.

tags/v1.3.1000
Jonathan Moore Liles 11 years ago
parent
commit
0a0d79ab8f
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Fl_x.cxx

+ 4
- 0
src/Fl_x.cxx View File

@@ -1733,14 +1733,18 @@ int fl_handle(const XEvent& thisevent)
set_event_xy();
if (xevent.xbutton.button == Button4) {
Fl::e_dy = -1; // Up
Fl::e_dx = 0;
event = FL_MOUSEWHEEL;
} else if (xevent.xbutton.button == Button5) {
Fl::e_dy = +1; // Down
Fl::e_dx = 0;
event = FL_MOUSEWHEEL;
} else if (xevent.xbutton.button == 6) {
Fl::e_dy = 0;
Fl::e_dx = -1; // Left
event = FL_MOUSEWHEEL;
} else if (xevent.xbutton.button == 7) {
Fl::e_dy = 0;
Fl::e_dx = +1; // Right
event = FL_MOUSEWHEEL;
} else {


Loading…
Cancel
Save