Merge pull request #5084 from J08nY/issue-5051

Windows: Hide mouse on MOUSE_MODE_CAPTURED
This commit is contained in:
Juan Linietsky 2016-06-07 11:02:20 -03:00
commit ce328ce99b
1 changed files with 1 additions and 1 deletions

View File

@ -708,7 +708,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd,UINT uMsg, WPARAM wParam, LPARAM lParam) {
case WM_SETCURSOR: { case WM_SETCURSOR: {
if(LOWORD(lParam) == HTCLIENT) { if(LOWORD(lParam) == HTCLIENT) {
if(mouse_mode == MOUSE_MODE_HIDDEN) { if(mouse_mode == MOUSE_MODE_HIDDEN || mouse_mode == MOUSE_MODE_CAPTURED) {
//Hide the cursor //Hide the cursor
if(hCursor == NULL) if(hCursor == NULL)
hCursor = SetCursor(NULL); hCursor = SetCursor(NULL);