src/video/win32/SDL_win32events.c
changeset 2284 545fbf461c5b
parent 2152 003c1b5b07da
child 2308 514f7c1651fc
--- 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: