From a04e8f4e1f0fc87dc07a5ac9a3a39d424d98989d Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 16 Jun 2021 22:55:42 +0200 Subject: [PATCH] hide cursor in directinput games --- src/directinput.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/directinput.c b/src/directinput.c index 19ee426..01547a3 100644 --- a/src/directinput.c +++ b/src/directinput.c @@ -97,6 +97,11 @@ static HRESULT WINAPI fake_di_CreateDevice( if (SUCCEEDED(result) && !real_did_SetCooperativeLevel) { + if (rguid && IsEqualGUID(&GUID_SysMouse, rguid)) + { + while (real_ShowCursor(FALSE) >= 0); + } + real_did_SetCooperativeLevel = (DIDSETCOOPERATIVELEVELPROC)hook_func( (PROC*)&(*lplpDIDevice)->lpVtbl->SetCooperativeLevel, (PROC)fake_did_SetCooperativeLevel);