Fixed another problem with a DirectInput function getting passed the wrong

constant when enumerating the joysticks. This should hopefully fix the
remaining problems.
This commit is contained in:
Shenjoku
2013-05-29 19:02:16 -07:00
parent 64f59e616c
commit b7f54a9fb0
@@ -92,7 +92,7 @@ static int GetNumHidDevices()
static int GetNumJoysticksSlow()
{
int iCount = 0;
HRESULT hr = g_dinput->EnumDevices( DI8DEVTYPE_JOYSTICK, CountDevicesCallback, &iCount, DIEDFL_ATTACHEDONLY );
HRESULT hr = g_dinput->EnumDevices( DI8DEVCLASS_GAMECTRL, CountDevicesCallback, &iCount, DIEDFL_ATTACHEDONLY );
if( hr != DI_OK )
{
LOG->Warn( hr_ssprintf(hr, "g_dinput->EnumDevices") );