mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
fix that bug here too
This commit is contained in:
@ -199,6 +199,9 @@ void InputConfigDialog::on_InputConfigDialog_rejected()
|
|||||||
|
|
||||||
void InputConfigDialog::on_cbxJoystick_currentIndexChanged(int id)
|
void InputConfigDialog::on_cbxJoystick_currentIndexChanged(int id)
|
||||||
{
|
{
|
||||||
|
// prevent a spurious change
|
||||||
|
if (ui->cbxJoystick->count() < 2) return;
|
||||||
|
|
||||||
Input::JoystickID = id;
|
Input::JoystickID = id;
|
||||||
Input::OpenJoystick();
|
Input::OpenJoystick();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user