1.1 --- a/src/video/windows/SDL_windowsevents.c Sat Mar 02 17:51:32 2013 -0800
1.2 +++ b/src/video/windows/SDL_windowsevents.c Sat Mar 02 20:44:16 2013 -0800
1.3 @@ -191,11 +191,11 @@
1.4 {
1.5 if ( bwParamMousePressed && !bSDLMousePressed )
1.6 {
1.7 - SDL_SendMouseButton(data->window, SDL_PRESSED, button);
1.8 + SDL_SendMouseButton(data->window, 0, SDL_PRESSED, button);
1.9 }
1.10 else if ( !bwParamMousePressed && bSDLMousePressed )
1.11 {
1.12 - SDL_SendMouseButton(data->window, SDL_RELEASED, button);
1.13 + SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
1.14 }
1.15 }
1.16
1.17 @@ -376,7 +376,7 @@
1.18
1.19 case WM_MOUSEMOVE:
1.20 if( !SDL_GetMouse()->relative_mode )
1.21 - SDL_SendMouseMotion(data->window, 0, LOWORD(lParam), HIWORD(lParam));
1.22 + SDL_SendMouseMotion(data->window, 0, 0, LOWORD(lParam), HIWORD(lParam));
1.23 /* don't break here, fall through to check the wParam like the button presses */
1.24 case WM_LBUTTONUP:
1.25 case WM_RBUTTONUP:
1.26 @@ -408,7 +408,7 @@
1.27
1.28 if((mouse->usFlags & 0x01) == MOUSE_MOVE_RELATIVE)
1.29 {
1.30 - SDL_SendMouseMotion(data->window, 1, (int)mouse->lLastX, (int)mouse->lLastY);
1.31 + SDL_SendMouseMotion(data->window, 0, 1, (int)mouse->lLastX, (int)mouse->lLastY);
1.32 }
1.33 else
1.34 {
1.35 @@ -420,7 +420,7 @@
1.36 initialMousePoint.y = mouse->lLastY;
1.37 }
1.38
1.39 - SDL_SendMouseMotion(data->window, 1, (int)(mouse->lLastX-initialMousePoint.x), (int)(mouse->lLastY-initialMousePoint.y) );
1.40 + SDL_SendMouseMotion(data->window, 0, 1, (int)(mouse->lLastX-initialMousePoint.x), (int)(mouse->lLastY-initialMousePoint.y) );
1.41
1.42 initialMousePoint.x = mouse->lLastX;
1.43 initialMousePoint.y = mouse->lLastY;
1.44 @@ -435,7 +435,7 @@
1.45 // FIXME: This may need to accumulate deltas up to WHEEL_DELTA
1.46 short motion = GET_WHEEL_DELTA_WPARAM(wParam) / WHEEL_DELTA;
1.47
1.48 - SDL_SendMouseWheel(data->window, 0, motion);
1.49 + SDL_SendMouseWheel(data->window, 0, 0, motion);
1.50 break;
1.51 }
1.52