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,19 +92,15 @@ BOOL HookAllDirectInputDevices(HWND hWnd)
joystick = directinput_objects.device; joystick = directinput_objects.device;
if (joystick->SetDataFormat(&c_dfDIJoystick) != DI_OK) // c_dfDIJoystick might be incorrect if (joystick->SetDataFormat(&c_dfDIJoystick) != DI_OK) // c_dfDIJoystick might be incorrect
{
return FALSE; 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; return FALSE;
}
else
{
joystick->Acquire(); joystick->Acquire();
return TRUE; return TRUE;
} }
}
// The original name for this function is unknown // The original name for this function is unknown
BOOL __stdcall EnumDevices_Callback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef) BOOL __stdcall EnumDevices_Callback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef)