diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-08-31 08:04:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-31 08:04:07 +0200 |
commit | c826ae1566cac462e2b72fd03947cd4893fde888 (patch) | |
tree | d07f095a47412b76a72882a7bde5bfcd41e36d51 /platform | |
parent | ace2ad961ca9b8b33c30ed6b855af9f7c03f6321 (diff) | |
parent | f0b6a242cc1934fb15c53e3e1724451c397bcb8b (diff) |
Merge pull request #6321 from hurikhan/fix_windows_mousemode
Windows: 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); } |