Windows: Hide mouse on MOUSE_MODE_CAPTURED

Fixes #5051
This commit is contained in:
J08nY 2016-06-05 17:44:38 +02:00
parent bf98095f46
commit 3cfa920982
No known key found for this signature in database
GPG Key ID: 7F4A448FE68F329D
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: {
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);