diff src/video/wincommon/SDL_sysevents.c @ 4113:82dab719502e SDL-1.2

Fixed bug #464 Added X1/X2 button constants
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 06:08:17 +0000
parents f5794774970d
children baf615f9f2a0
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c	Sat Dec 29 06:06:03 2007 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Sat Dec 29 06:08:17 2007 +0000
@@ -520,12 +520,12 @@
 						break;
 					case WM_XBUTTONDOWN:
 						xbuttonval = GET_XBUTTON_WPARAM(wParam);
-						button = SDL_BUTTON_WHEELDOWN + xbuttonval;
+						button = SDL_BUTTON_X1 + xbuttonval - 1;
 						state = SDL_PRESSED;
 						break;
 					case WM_XBUTTONUP:
 						xbuttonval = GET_XBUTTON_WPARAM(wParam);
-						button = SDL_BUTTON_WHEELDOWN + xbuttonval;
+						button = SDL_BUTTON_X1 + xbuttonval - 1;
 						state = SDL_RELEASED;
 						break;
 					default: