projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b9f8b38
)
Connect mousewheel to Forward/BackwardEvent (XB)
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Fri, 5 Sep 2014 12:03:49 +0000 (14:03 +0200)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Fri, 5 Sep 2014 12:03:49 +0000 (14:03 +0200)
The mouse buttons 4 and 5 are now processed in the handler for the
board widget.
dialogs.c
patch
|
blob
|
history
diff --git
a/dialogs.c
b/dialogs.c
index
badad64
..
3a1769c
100644
(file)
--- a/
dialogs.c
+++ b/
dialogs.c
@@
-2536,6
+2536,8
@@
Exp (int n, int x, int y)
case 3: menuNr = RightClick(Press, x, y, &pmFromX, &pmFromY), but3 = 1; break;
case -2: shiftKey = !shiftKey;
case -3: menuNr = RightClick(Release, x, y, &pmFromX, &pmFromY), but3 = 0; break;
+ case 4: BackwardEvent(); break;
+ case 5: ForwardEvent(); break;
case 10:
sizing = (oldW != x || oldH != y);
oldW = x; oldH = y;