mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Added use of standard lParam macros.
This commit is contained in:
parent
18392837ac
commit
4408d2134c
|
@ -33,6 +33,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <windowsx.h>
|
||||||
|
|
||||||
//========================================================================
|
//========================================================================
|
||||||
// Hide mouse cursor
|
// Hide mouse cursor
|
||||||
|
@ -559,8 +560,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||||
int newCursorX, newCursorY;
|
int newCursorX, newCursorY;
|
||||||
|
|
||||||
// Get signed (!) cursor position
|
// Get signed (!) cursor position
|
||||||
newCursorX = (int)((short)LOWORD(lParam));
|
newCursorX = GET_X_LPARAM(lParam);
|
||||||
newCursorY = (int)((short)HIWORD(lParam));
|
newCursorY = GET_Y_LPARAM(lParam);
|
||||||
|
|
||||||
if (newCursorX != window->Win32.oldCursorX ||
|
if (newCursorX != window->Win32.oldCursorX ||
|
||||||
newCursorY != window->Win32.oldCursorY)
|
newCursorY != window->Win32.oldCursorY)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user