Doesn't affect the generated ASM
This commit is contained in:
Clownacy 2019-08-29 19:36:39 +01:00
parent d5ee5f6979
commit 36291ebf36

View file

@ -92,18 +92,14 @@ BOOL HookAllDirectInputDevices(HWND hWnd)
joystick = directinput_objects.device;
if (joystick->SetDataFormat(&c_dfDIJoystick) != DI_OK) // c_dfDIJoystick might be incorrect
{
return FALSE;
}
else if (joystick->SetCooperativeLevel(hWnd, DISCL_EXCLUSIVE | DISCL_BACKGROUND) != DI_OK)
{
if (joystick->SetCooperativeLevel(hWnd, DISCL_EXCLUSIVE | DISCL_BACKGROUND) != DI_OK)
return FALSE;
}
else
{
joystick->Acquire();
return TRUE;
}
joystick->Acquire();
return TRUE;
}
// The original name for this function is unknown