From: H.G.Muller Date: Fri, 5 Sep 2014 12:03:49 +0000 (+0200) Subject: Connect mousewheel to Forward/BackwardEvent (XB) X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=c093ed852cc384683f502f5b686178b33e406063 Connect mousewheel to Forward/BackwardEvent (XB) The mouse buttons 4 and 5 are now processed in the handler for the board widget. --- diff --git a/dialogs.c b/dialogs.c index badad64..3a1769c 100644 --- 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;