Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_sysevents.c @ 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 | 4e4866a72905 |
children | f5794774970d |
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: