src/video/wincommon/SDL_sysevents.c
branchSDL-1.2
changeset 4113 82dab719502e
parent 4011 f5794774970d
child 4157 baf615f9f2a0
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Sat Dec 29 06:06:03 2007 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Sat Dec 29 06:08:17 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_X1 + xbuttonval - 1;
     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_X1 + xbuttonval - 1;
    1.15  						state = SDL_RELEASED;
    1.16  						break;
    1.17  					default: