add dinput curspr hack

This commit is contained in:
FunkyFr3sh 2023-07-28 09:38:39 +02:00
parent 2ee62a4674
commit 2e6dcb2906
3 changed files with 5 additions and 1 deletions

View file

@ -40,7 +40,7 @@ static HRESULT WINAPI fake_did_SetCooperativeLevel(IDirectInputDeviceA* This, HW
{
TRACE("DirectInput SetCooperativeLevel(This=%p, hwnd=%p, dwFlags=0x%08X)\n", This, hwnd, dwFlags);
if (This == g_mouse_device && g_ddraw && (dwFlags & DISCL_EXCLUSIVE))
if (This == g_mouse_device && g_ddraw && (dwFlags & DISCL_EXCLUSIVE) && !g_ddraw->dinput_show_cursor)
{
if (g_mouse_locked || g_ddraw->devmode)
{