Ugh... actually changing what buttons are returned to the application. Maybe we should wait until SDL 1.3 for horizontal scrolling support? SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 06 Jul 2007 13:32:20 +0000
branchSDL-1.2
changeset 4010 3aa1406620f6
parent 4009 1146681dbb74
child 4011 f5794774970d
Ugh... actually changing what buttons are returned to the application. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
src/video/wincommon/SDL_sysevents.c
--- a/src/video/wincommon/SDL_sysevents.c	Fri Jul 06 09:15:43 2007 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Fri Jul 06 13:32:20 2007 +0000
@@ -520,12 +520,12 @@
 						break;
 					case WM_XBUTTONDOWN:
 						xbuttonval = GET_XBUTTON_WPARAM(wParam);
-						button = SDL_BUTTON_WHEELDOWN + xbuttonval;
+						button = SDL_BUTTON_WHEELRIGHT + xbuttonval;
 						state = SDL_PRESSED;
 						break;
 					case WM_XBUTTONUP:
 						xbuttonval = GET_XBUTTON_WPARAM(wParam);
-						button = SDL_BUTTON_WHEELDOWN + xbuttonval;
+						button = SDL_BUTTON_WHEELRIGHT + xbuttonval;
 						state = SDL_RELEASED;
 						break;
 					default: