From cb2bd277cdeda8bd91a582375a09dd678fcac530 Mon Sep 17 00:00:00 2001 From: ergo720 <45463469+ergo720@users.noreply.github.com> Date: Wed, 23 Sep 2020 12:02:00 +0200 Subject: [PATCH] Hide the mouse cursor when hovering on the rendering window --- src/core/hle/D3D8/Direct3D9/Direct3D9.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp index aaca83458..3c96390cc 100644 --- a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp +++ b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp @@ -2037,6 +2037,7 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar DInput::mo_leave_wnd = true; g_bIsTrackingMoLeave = false; g_bIsTrackingMoMove = true; + ShowCursor(TRUE); } break; @@ -2053,6 +2054,7 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar tme.dwFlags = TME_LEAVE; TrackMouseEvent(&tme); g_bIsTrackingMoLeave = true; + ShowCursor(FALSE); if (g_bIsTrackingMoMove) { DInput::mo_leave_wnd = false;