diff options
author | Mario Schlack <m4r10.5ch14ck@gmail.com> | 2016-08-29 13:14:38 +0800 |
---|---|---|
committer | Mario Schlack <m4r10.5ch14ck@gmail.com> | 2016-08-29 13:14:38 +0800 |
commit | f0b6a242cc1934fb15c53e3e1724451c397bcb8b (patch) | |
tree | 65e37bdfa072744c0584672142cd7567d2b00cf6 /platform | |
parent | 1b80edafcaeca5c9f61c86448a16238fd82bb6da (diff) |
Hide the mouse cursor when MOUSE_MODE_CAPTURED is activated.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 571277f91e..cebafdabce 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1364,7 +1364,9 @@ void OS_Windows::set_mouse_mode(MouseMode p_mode) { POINT pos = { (int) center.x, (int) center.y }; ClientToScreen(hWnd, &pos); SetCursorPos(pos.x, pos.y); + ShowCursor(false); } else { + ShowCursor(true); ReleaseCapture(); ClipCursor(NULL); } |