ref: 5d2bcb856bb7d5607d6dcb547a626396e3900d72
parent: fdbaa4e8e97d1f015c4b49d83408da220a098edf
parent: d50c012446c87a47465663131fbb3bad207b86c0
author: Clownacy <[email protected]>
date: Tue Jan 21 07:20:03 EST 2020
Merge branch 'accurate' into portable
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -29,14 +29,15 @@
{
SDL_InitSubSystem(SDL_INIT_JOYSTICK);
- if (!HookAllDirectInputDevices())
+ if (!HookDirectInputDevice())
return FALSE;
return TRUE;
}
-// The original name for this function and its variables are unknown
-BOOL HookAllDirectInputDevices(void)
+// The original name for this function and its variables are unknown.
+// This function finds and hooks the first available DirectInput device (or SDL Joystick, in this case).
+BOOL HookDirectInputDevice(void)
{
int i;