Skip to content

Commit

Permalink
log DI GUID
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Sep 16, 2024
1 parent 19ad4bb commit 5901d12
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/directinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,14 @@ static HRESULT WINAPI fake_di_CreateDevice(

if (SUCCEEDED(result))
{
if (rguid && IsEqualGUID(&GUID_SysMouse, rguid))
if (rguid)
{
g_mouse_device = *lplpDIDevice;
TRACE(" GUID = %08X\n", ((GUID*)rguid)->Data1);

if (IsEqualGUID(&GUID_SysMouse, rguid))
{
g_mouse_device = *lplpDIDevice;
}
}

if (!real_did_SetCooperativeLevel)
Expand Down Expand Up @@ -173,9 +178,14 @@ static HRESULT WINAPI fake_di_CreateDeviceEx(

if (SUCCEEDED(result))
{
if (rguid && IsEqualGUID(&GUID_SysMouse, rguid))
if (rguid)
{
g_mouse_device = *lplpDIDevice;
TRACE(" GUID = %08X\n", ((GUID*)rguid)->Data1);

if (IsEqualGUID(&GUID_SysMouse, rguid))
{
g_mouse_device = *lplpDIDevice;
}
}

if (!real_did_SetCooperativeLevel)
Expand Down

0 comments on commit 5901d12

Please sign in to comment.