mirror of https://github.com/PCSX2/pcsx2.git
Removed hack - use xinputNotInstalled as a flag instead of reusing pXInputEnable
This commit is contained in:
parent
c280d69d6f
commit
b8b6a55952
|
@ -70,6 +70,7 @@ _XInputEnable pXInputEnable = 0;
|
|||
_XInputGetStateEx pXInputGetStateEx = 0;
|
||||
_XInputGetExtended pXInputGetExtended = 0;
|
||||
_XInputSetState pXInputSetState = 0;
|
||||
static bool xinputNotInstalled = false;
|
||||
|
||||
static int xInputActiveCount = 0;
|
||||
|
||||
|
@ -269,9 +270,8 @@ void EnumXInputDevices()
|
|||
{
|
||||
wchar_t temp[30];
|
||||
if (!pXInputSetState) {
|
||||
// Also used as flag to indicute XInput not installed, so
|
||||
// don't repeatedly try to load it.
|
||||
if (pXInputEnable)
|
||||
// XInput not installed, so don't repeatedly try to load it.
|
||||
if (xinputNotInstalled)
|
||||
return;
|
||||
|
||||
// Prefer XInput 1.3 since SCP only has an XInput 1.3 wrapper right now.
|
||||
|
@ -292,7 +292,7 @@ void EnumXInputDevices()
|
|||
}
|
||||
}
|
||||
if (!pXInputSetState) {
|
||||
pXInputEnable = (_XInputEnable)-1;
|
||||
xinputNotInstalled = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue