From 0b996ea321f07c158d64bed38ce4a0a7f8613e4d Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 31 Aug 2021 21:36:09 +0200 Subject: [PATCH] Working on support for various controllers --- source/title.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/title.cpp b/source/title.cpp index c3228b5..ccb1f63 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -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