Renombradas las variables de opciones
Actualizado el fichero de configuración
This commit is contained in:
@@ -79,18 +79,18 @@ void Title::init()
|
||||
demo = true;
|
||||
|
||||
// Pone valores por defecto a las opciones de control
|
||||
options->input.clear();
|
||||
options->game.input.clear();
|
||||
|
||||
input_t i;
|
||||
i.id = 0;
|
||||
i.name = "KEYBOARD";
|
||||
i.deviceType = INPUT_USE_KEYBOARD;
|
||||
options->input.push_back(i);
|
||||
options->game.input.push_back(i);
|
||||
|
||||
i.id = 0;
|
||||
i.name = "GAME CONTROLLER";
|
||||
i.deviceType = INPUT_USE_GAMECONTROLLER;
|
||||
options->input.push_back(i);
|
||||
options->game.input.push_back(i);
|
||||
|
||||
// Comprueba si hay mandos conectados
|
||||
checkInputDevices();
|
||||
@@ -103,9 +103,9 @@ void Title::init()
|
||||
// Si ha encontrado un mando se lo asigna al segundo jugador
|
||||
if (input->gameControllerFound())
|
||||
{
|
||||
options->input[1].id = availableInputDevices[deviceIndex[1]].id;
|
||||
options->input[1].name = availableInputDevices[deviceIndex[1]].name;
|
||||
options->input[1].deviceType = availableInputDevices[deviceIndex[1]].deviceType;
|
||||
options->game.input[1].id = availableInputDevices[deviceIndex[1]].id;
|
||||
options->game.input[1].name = availableInputDevices[deviceIndex[1]].name;
|
||||
options->game.input[1].deviceType = availableInputDevices[deviceIndex[1]].deviceType;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,13 +314,13 @@ bool Title::updatePlayerInputs(int numPlayer)
|
||||
deviceIndex[0] = 0;
|
||||
deviceIndex[1] = 0;
|
||||
|
||||
options->input[0].id = -1;
|
||||
options->input[0].name = "KEYBOARD";
|
||||
options->input[0].deviceType = INPUT_USE_KEYBOARD;
|
||||
options->game.input[0].id = -1;
|
||||
options->game.input[0].name = "KEYBOARD";
|
||||
options->game.input[0].deviceType = INPUT_USE_KEYBOARD;
|
||||
|
||||
options->input[1].id = 0;
|
||||
options->input[1].name = "GAME CONTROLLER";
|
||||
options->input[1].deviceType = INPUT_USE_GAMECONTROLLER;
|
||||
options->game.input[1].id = 0;
|
||||
options->game.input[1].name = "GAME CONTROLLER";
|
||||
options->game.input[1].deviceType = INPUT_USE_GAMECONTROLLER;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -358,8 +358,8 @@ bool Title::updatePlayerInputs(int numPlayer)
|
||||
}
|
||||
|
||||
// Copia el dispositivo marcado por el indice a la variable de opciones de cada jugador
|
||||
options->input[0] = availableInputDevices[deviceIndex[0]];
|
||||
options->input[1] = availableInputDevices[deviceIndex[1]];
|
||||
options->game.input[0] = availableInputDevices[deviceIndex[0]];
|
||||
options->game.input[1] = availableInputDevices[deviceIndex[1]];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user