mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-24 22:05:05 +00:00
fixed os/2 mouse relative motion not working (thanks Andrey Vasilkin,)
for issue reported at https://github.com/bitwiseworks/SDL2-os2/issues/5
This commit is contained in:
parent
4700fbcbdf
commit
b1324fbc9f
|
@ -126,6 +126,8 @@ static void OS2_WarpMouse(SDL_Window * window, int x, int y)
|
||||||
WinMapWindowPoints(pWinData->hwnd, HWND_DESKTOP, &pointl, 1);
|
WinMapWindowPoints(pWinData->hwnd, HWND_DESKTOP, &pointl, 1);
|
||||||
/* pWinData->lSkipWMMouseMove++; ???*/
|
/* 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int OS2_WarpMouseGlobal(int x, int y)
|
static int OS2_WarpMouseGlobal(int x, int y)
|
||||||
|
|
Loading…
Reference in a new issue