ref: 0bcf9784245fdca250080c0ddfb2d8d4e46d2bac
parent: 946d816a3b06c6391f77b971190d3e3c545d469c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Jan 24 16:00:34 EST 2020
Rename HookDirectInputDevice
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -58,7 +58,7 @@
}
// It looks like Pixel declared his functions early, so he could forward-reference
-BOOL HookDirectInputDevice(HWND hWnd);
+BOOL FindAndOpenDirectInputDevice(HWND hWnd);
BOOL __stdcall EnumDevices_Callback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef);
BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd)
@@ -70,7 +70,7 @@
#endif
return FALSE;
- if (!HookDirectInputDevice(hWnd))
+ if (!FindAndOpenDirectInputDevice(hWnd))
return FALSE;
return TRUE;
@@ -78,7 +78,7 @@
// The original name for this function and its variables are unknown.
// This function finds and hooks the first available DirectInput device.
-BOOL HookDirectInputDevice(HWND hWnd)
+BOOL FindAndOpenDirectInputDevice(HWND hWnd)
{
DirectInputPair directinput_objects;