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

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