From b7f54a9fb057e063453fd2fbfcfa7bd21f61d027 Mon Sep 17 00:00:00 2001 From: Shenjoku Date: Wed, 29 May 2013 19:02:16 -0700 Subject: [PATCH] Fixed another problem with a DirectInput function getting passed the wrong constant when enumerating the joysticks. This should hopefully fix the remaining problems. --- src/arch/InputHandler/InputHandler_DirectInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/InputHandler/InputHandler_DirectInput.cpp b/src/arch/InputHandler/InputHandler_DirectInput.cpp index 9016db6412..f5104b648d 100644 --- a/src/arch/InputHandler/InputHandler_DirectInput.cpp +++ b/src/arch/InputHandler/InputHandler_DirectInput.cpp @@ -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") );