projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mousewheel support on all platforms (X11,Darwin,Win32,Java14) and in the core (bug...
[org.ibex.core.git]
/
src
/
org
/
ibex
/
plat
/
X11.cc
diff --git
a/src/org/ibex/plat/X11.cc
b/src/org/ibex/plat/X11.cc
index
81e61fb
..
0252a81
100644
(file)
--- a/
src/org/ibex/plat/X11.cc
+++ b/
src/org/ibex/plat/X11.cc
@@
-526,6
+526,12
@@
void org::ibex::plat::X11$X11Surface::dispatchEvent(gnu::gcj::RawData* ev) {
} else if (e->type == ButtonPress) {
XButtonEvent* xbe = (XButtonEvent*)(e);
} else if (e->type == ButtonPress) {
XButtonEvent* xbe = (XButtonEvent*)(e);
+ switch(xbe->button) {
+ case 4: VScroll((jfloat)-1.0); return;
+ case 5: VScroll((jfloat)1.0); return;
+ case 6: HScroll((jfloat)-1.0); return;
+ case 7: HScroll((jfloat)1.0); return;
+ }
if (xbe->button == 2) xbe->button = 3;
else if (xbe->button == 3) xbe->button = 2;
Press(xbe->button);
if (xbe->button == 2) xbe->button = 3;
else if (xbe->button == 3) xbe->button = 2;
Press(xbe->button);