Working on support for various controllers

This commit is contained in:
2021-08-31 21:36:09 +02:00
parent cf072424c6
commit 0b996ea321

View File

@@ -148,10 +148,9 @@ void Title::init(bool demo, Uint8 subsection)
}
checkInputDevices();
mDeviceIndex[0] = mAvailableInputDevices.size();
mDeviceIndex[1] = 0;
mDeviceIndex[0] = mAvailableInputDevices.size() - 1;
mDeviceIndex[1] = 0;
// Inicializa el bitmap de Coffee
mCoffeeBitmap->init(mTitleTexture, mRenderer);
@@ -768,11 +767,11 @@ section_t Title::run(Uint8 subsection)
updateMenuLabels();
break;
case 1: // PLAYER 1 CONTROLS
updatePlayerInputs(1);
updatePlayerInputs(0);
updateMenuLabels();
break;
case 3: // PLAYER 2 CONTROLS
updatePlayerInputs(2);
updatePlayerInputs(1);
updateMenuLabels();
break;
case 5: // Language