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
Fri, 06 Jul 2007 13:32:20 +0000
branchSDL-1.2
changeset 40103aa1406620f6
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
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Fri Jul 06 09:15:43 2007 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Fri Jul 06 13:32:20 2007 +0000
     1.3 @@ -520,12 +520,12 @@
     1.4  						break;
     1.5  					case WM_XBUTTONDOWN:
     1.6  						xbuttonval = GET_XBUTTON_WPARAM(wParam);
     1.7 -						button = SDL_BUTTON_WHEELDOWN + xbuttonval;
     1.8 +						button = SDL_BUTTON_WHEELRIGHT + xbuttonval;
     1.9  						state = SDL_PRESSED;
    1.10  						break;
    1.11  					case WM_XBUTTONUP:
    1.12  						xbuttonval = GET_XBUTTON_WPARAM(wParam);
    1.13 -						button = SDL_BUTTON_WHEELDOWN + xbuttonval;
    1.14 +						button = SDL_BUTTON_WHEELRIGHT + xbuttonval;
    1.15  						state = SDL_RELEASED;
    1.16  						break;
    1.17  					default: