mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-21 11:07:51 +00:00
further mouse relative motion fix for os/2 (thanks Andrey Vasilkin)
This commit is contained in:
parent
aa536217b3
commit
f5b3247aae
|
@ -122,11 +122,9 @@ static void OS2_WarpMouse(SDL_Window * window, int x, int y)
|
||||||
POINTL pointl;
|
POINTL pointl;
|
||||||
|
|
||||||
pointl.x = x;
|
pointl.x = x;
|
||||||
pointl.y = window->h - y;
|
pointl.y = window->h - y - 1;
|
||||||
WinMapWindowPoints(pWinData->hwnd, HWND_DESKTOP, &pointl, 1);
|
WinMapWindowPoints(pWinData->hwnd, HWND_DESKTOP, &pointl, 1);
|
||||||
/* pWinData->lSkipWMMouseMove++; ???*/
|
|
||||||
WinSetPointerPos(HWND_DESKTOP, pointl.x, pointl.y);
|
WinSetPointerPos(HWND_DESKTOP, pointl.x, pointl.y);
|
||||||
|
|
||||||
SDL_SendMouseMotion(window, SDL_GetMouse()->mouseID, 0, x, y);
|
SDL_SendMouseMotion(window, SDL_GetMouse()->mouseID, 0, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue