Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32events.c @ 2284:545fbf461c5b
Fixed bug #464
Added X1/X2 button constants
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 06:09:25 +0000 |
parents | 003c1b5b07da |
children | 514f7c1651fc |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c Sat Dec 29 03:25:11 2007 +0000 +++ b/src/video/win32/SDL_win32events.c Sat Dec 29 06:09:25 2007 +0000 @@ -590,12 +590,12 @@ break; case WM_XBUTTONDOWN: xbuttonval = GET_XBUTTON_WPARAM(wParam); - button = SDL_BUTTON_RIGHT + xbuttonval; + button = SDL_BUTTON_X1 + xbuttonval - 1; state = SDL_PRESSED; break; case WM_XBUTTONUP: xbuttonval = GET_XBUTTON_WPARAM(wParam); - button = SDL_BUTTON_RIGHT + xbuttonval; + button = SDL_BUTTON_X1 + xbuttonval - 1; state = SDL_RELEASED; break; default: