Dual input for P1 done
This commit is contained in:
@@ -343,7 +343,7 @@ void Title::updateMenuLabels()
|
||||
|
||||
i++;
|
||||
// PLAYER 1 CONTROLS - OPTIONS
|
||||
switch (mOptions->player1Input)
|
||||
switch (mOptions->input[0])
|
||||
{
|
||||
case INPUT_USE_KEYBOARD:
|
||||
mMenu.options->setItemCaption(i, mLang->getText(69)); // KEYBOARD
|
||||
@@ -364,7 +364,7 @@ void Title::updateMenuLabels()
|
||||
|
||||
i++;
|
||||
// PLAYER 2 CONTROLS - OPTIONS
|
||||
switch (mOptions->player2Input)
|
||||
switch (mOptions->input[1])
|
||||
{
|
||||
case INPUT_USE_KEYBOARD:
|
||||
mMenu.options->setItemCaption(i, mLang->getText(69)); // KEYBOARD
|
||||
@@ -733,11 +733,11 @@ section_t Title::run(Uint8 subsection)
|
||||
updateMenuLabels();
|
||||
break;
|
||||
case 1: // PLAYER 1 CONTROLS
|
||||
SwitchInputs(1);
|
||||
switchInputs(1);
|
||||
updateMenuLabels();
|
||||
break;
|
||||
case 3: // PLAYER 2 CONTROLS
|
||||
SwitchInputs(2);
|
||||
switchInputs(2);
|
||||
updateMenuLabels();
|
||||
break;
|
||||
case 5: // Language
|
||||
@@ -880,18 +880,18 @@ void Title::runInstructions(Uint8 mode)
|
||||
// Ejecuta el juego en modo demo
|
||||
void Title::runDemoGame()
|
||||
{
|
||||
mDemoGame = new Game(1, mRenderer, mFileList, mLang, mInput, mInput, true, DIFFICULTY_NORMAL);
|
||||
mDemoGame = new Game(1, mRenderer, mFileList, mLang, mInput, true, mOptions);
|
||||
mDemoGame->run();
|
||||
delete mDemoGame;
|
||||
}
|
||||
|
||||
// Modifica las opciones para los controles de los jugadores
|
||||
void Title::SwitchInputs(int value)
|
||||
void Title::switchInputs(int value)
|
||||
{
|
||||
Uint8 temp;
|
||||
temp = mOptions->player1Input;
|
||||
mOptions->player1Input = mOptions->player2Input;
|
||||
mOptions->player2Input = temp;
|
||||
temp = mOptions->input[0];
|
||||
mOptions->input[0] = mOptions->input[1];
|
||||
mOptions->input[1] = temp;
|
||||
}
|
||||
|
||||
// Crea el mosaico de fondo del titulo
|
||||
|
||||
Reference in New Issue
Block a user