Don't open joystick if it's not enabled in ChangeJoystick
parent
20a367783b
commit
d3c3a51ede
|
@ -781,7 +781,10 @@ bool CApplication::ChangeJoystick(const JoystickDevice &newJoystick)
|
||||||
if (m_private->joystick != nullptr)
|
if (m_private->joystick != nullptr)
|
||||||
CloseJoystick();
|
CloseJoystick();
|
||||||
|
|
||||||
return OpenJoystick();
|
if (m_joystickEnabled)
|
||||||
|
return OpenJoystick();
|
||||||
|
else
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Uint32 JoystickTimerCallback(Uint32 interval, void *)
|
Uint32 JoystickTimerCallback(Uint32 interval, void *)
|
||||||
|
|
Loading…
Reference in New Issue