Merge branch 'accurate' into portable

This commit is contained in:
Clownacy 2020-01-21 12:20:03 +00:00
commit 5d2bcb856b

View file

@ -29,14 +29,15 @@ BOOL InitDirectInput(void)
{ {
SDL_InitSubSystem(SDL_INIT_JOYSTICK); SDL_InitSubSystem(SDL_INIT_JOYSTICK);
if (!HookAllDirectInputDevices()) if (!HookDirectInputDevice())
return FALSE; return FALSE;
return TRUE; return TRUE;
} }
// The original name for this function and its variables are unknown // The original name for this function and its variables are unknown.
BOOL HookAllDirectInputDevices(void) // This function finds and hooks the first available DirectInput device (or SDL Joystick, in this case).
BOOL HookDirectInputDevice(void)
{ {
int i; int i;