|
|
@ -618,12 +618,12 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, |
|
|
|
|
|
|
|
|
|
|
|
if (window->cursorMode == GLFW_CURSOR_DISABLED) |
|
|
|
if (window->cursorMode == GLFW_CURSOR_DISABLED) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (_glfw.win32.disabledCursorWindow != window) |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const int dx = x - window->win32.lastCursorPosX; |
|
|
|
const int dx = x - window->win32.lastCursorPosX; |
|
|
|
const int dy = y - window->win32.lastCursorPosY; |
|
|
|
const int dy = y - window->win32.lastCursorPosY; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_glfw.win32.disabledCursorWindow != window) |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
_glfwInputCursorPos(window, |
|
|
|
_glfwInputCursorPos(window, |
|
|
|
window->virtualCursorPosX + dx, |
|
|
|
window->virtualCursorPosX + dx, |
|
|
|
window->virtualCursorPosY + dy); |
|
|
|
window->virtualCursorPosY + dy); |
|
|
|