mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
hide cursor in directinput games
This commit is contained in:
parent
3ffd113050
commit
a04e8f4e1f
@ -97,6 +97,11 @@ static HRESULT WINAPI fake_di_CreateDevice(
|
|||||||
|
|
||||||
if (SUCCEEDED(result) && !real_did_SetCooperativeLevel)
|
if (SUCCEEDED(result) && !real_did_SetCooperativeLevel)
|
||||||
{
|
{
|
||||||
|
if (rguid && IsEqualGUID(&GUID_SysMouse, rguid))
|
||||||
|
{
|
||||||
|
while (real_ShowCursor(FALSE) >= 0);
|
||||||
|
}
|
||||||
|
|
||||||
real_did_SetCooperativeLevel =
|
real_did_SetCooperativeLevel =
|
||||||
(DIDSETCOOPERATIVELEVELPROC)hook_func(
|
(DIDSETCOOPERATIVELEVELPROC)hook_func(
|
||||||
(PROC*)&(*lplpDIDevice)->lpVtbl->SetCooperativeLevel, (PROC)fake_did_SetCooperativeLevel);
|
(PROC*)&(*lplpDIDevice)->lpVtbl->SetCooperativeLevel, (PROC)fake_did_SetCooperativeLevel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user