1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

hide cursor in directinput games

This commit is contained in:
FunkyFr3sh 2021-06-16 22:55:42 +02:00
parent 3ffd113050
commit a04e8f4e1f

View File

@ -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);