[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XBoard-devel] Add mousewheel for winboard
From: |
Daniel Mehrmann |
Subject: |
[XBoard-devel] Add mousewheel for winboard |
Date: |
Mon, 09 Feb 2004 20:11:27 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040124 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i add mousewheel support for winboard. Now you can ply forward and
backward through the moves.
Yes tim, there was a mousewheel support for wb on your website of
Laszlo. But i create a own one thats more simple and looks like absolut
different as the Laszlo one. So, i think we have no problems with the
licsense.
- --- winboard.c 2004-02-09 19:23:01.328125000 +0100
+++ winboard.new 2004-02-09 19:37:32.125000000 +0100
@@ -3108,7 +3108,16 @@
~ dragInfo.lastpos = dragInfo.pos;
~ }
~ break;
- -
+ case WM_MOUSEWHEEL:
+ /* Mouse Wheel is being rolled forward
+ * Play moves forward
+ */
+ if((short)HIWORD(wParam) > 0 ) ForwardEvent();
+ /* Mouse Wheel is being rolled backward
+ * Play moves backward
+ */
+ if((short)HIWORD(wParam) < 0 ) BackwardEvent();
+ break;
~ case WM_MBUTTONDOWN:
~ case WM_RBUTTONDOWN:
~ ErrorPopDown();
@@ -3415,6 +3424,7 @@
~ case WM_MBUTTONUP:
~ case WM_RBUTTONUP:
~ case WM_MOUSEMOVE:
+ case WM_MOUSEWHEEL:
~ MouseEvent(hwnd, message, wParam, lParam);
~ break;
- --- ChangeLog 2003-11-28 10:37:36.000000000 +0100
+++ ChangeLog.new 2004-02-09 20:02:16.406250000 +0100
@@ -1,5 +1,8 @@
~ ChangeLog for XBoard/WinBoard
+* 09/02/2004: Add mousewheel support for winboard. Play moves backward
+and forward with the mousewheel.
+
~ * 11/26/2003: In WinBoard, setting the -debug flag now logs ICS output
~ to WinBoard.debug too. (This isn't needed in xboard because ICS
~ output already goes to stdout, so it's easy to capture along with the
- --
Daniel Mehrmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFAJ9tfPt1V5Pj1nvYRAlHMAKCsXjARz8Ftt1CETCrd01bUbYCAggCfbJHB
x1qvVXKfCNlITmj8jtD+mhs=
=R44e
-----END PGP SIGNATURE-----
smime.p7s
Description: S/MIME Cryptographic Signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [XBoard-devel] Add mousewheel for winboard,
Daniel Mehrmann <=