Renamed internal cursor position in preparation of new API.

This commit is contained in:
Camilla Berglund
2011-10-13 15:20:59 +02:00
parent 851f510d4b
commit 2660b27cf3
5 changed files with 25 additions and 23 deletions
+4 -4
View File
@@ -1371,8 +1371,8 @@ static int createWindow(_GLFWwindow* window,
// Initialize mouse position data
GetCursorPos(&pos);
ScreenToClient(window->Win32.handle, &pos);
window->Win32.oldMouseX = window->mousePosX = pos.x;
window->Win32.oldMouseY = window->mousePosY = pos.y;
window->Win32.oldMouseX = window->cursorPosX = pos.x;
window->Win32.oldMouseY = window->cursorPosY = pos.y;
return GL_TRUE;
}
@@ -1786,8 +1786,8 @@ void _glfwPlatformPollEvents(void)
}
else
{
//window->Win32.oldMouseX = window->mousePosX;
//window->Win32.oldMouseY = window->mousePosY;
//window->Win32.oldMouseX = window->cursorPosX;
//window->Win32.oldMouseY = window->cursorPosY;
}
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))