changeset 4010:3aa1406620f6 SDL-1.2

Ugh... actually changing what buttons are returned to the application. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
author Sam Lantinga <slouken@libsdl.org>
date Fri, 06 Jul 2007 13:32:20 +0000
parents 1146681dbb74
children f5794774970d
files src/video/wincommon/SDL_sysevents.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: