diff options
author | J08nY <johny@neuromancer.sk> | 2016-06-05 17:44:38 +0200 |
---|---|---|
committer | J08nY <johny@neuromancer.sk> | 2016-06-07 12:57:01 +0200 |
commit | 3cfa9209825b1992f8958ecedf88ee1eec8c7fb0 (patch) | |
tree | 0c8fdf36ab5817a4c9698ff0e14b2edbf2eca2a9 | |
parent | bf98095f46c4d9dbe55c0d07582d9f073f2f7405 (diff) |
Windows: Hide mouse on MOUSE_MODE_CAPTURED
Fixes #5051
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 5e3dc438d0..9034541f37 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -708,7 +708,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd,UINT uMsg, WPARAM wParam, LPARAM lParam) { case WM_SETCURSOR: { if(LOWORD(lParam) == HTCLIENT) { - if(mouse_mode == MOUSE_MODE_HIDDEN) { + if(mouse_mode == MOUSE_MODE_HIDDEN || mouse_mode == MOUSE_MODE_CAPTURED) { //Hide the cursor if(hCursor == NULL) hCursor = SetCursor(NULL); |