ref: 5b4d343df4de53ebf35f77a0e207bc87f3337996
parent: b35fa162e04720d96457a35ea91ca0a557ef496a
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Jan 4 14:45:39 EST 2020
Apply missing constants Yay WinAPI
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -84,7 +84,7 @@
directinput_objects.lpDI = lpDI;
lpDI->AddRef();
- lpDI->EnumDevices(4, EnumDevices_Callback, &directinput_objects, 1);
+ lpDI->EnumDevices(DIDEVTYPE_JOYSTICK, EnumDevices_Callback, &directinput_objects, DIEDFL_ATTACHEDONLY);
if (directinput_objects.lpDI != NULL)
{