Options: afegida opció per invertir el y_axis (la recre te els mandos mal cablejats)

This commit is contained in:
2025-06-26 22:26:38 +02:00
parent c923f0d310
commit ed91bff7df
4 changed files with 21 additions and 6 deletions

View File

@@ -55,6 +55,7 @@ namespace Options
settings.language = Lang::Code::VALENCIAN;
settings.autofire = true;
settings.shutdown_enabled = false;
settings.is_y_axis_inverted = false;
settings.clearLastHiScoreEntries();
settings.config_file = Asset::get()->get("config.txt");
@@ -172,6 +173,7 @@ namespace Options
file << "game.difficulty=" << static_cast<int>(settings.difficulty) << "\n";
file << "game.autofire=" << boolToString(settings.autofire) << "\n";
file << "game.shutdown_enabled=" << boolToString(settings.shutdown_enabled) << "\n";
file << "game.is_y_axis_inverted=" << boolToString(settings.is_y_axis_inverted) << "\n";
// Opciones de mandos
file << "\n\n## CONTROLLERS\n";
@@ -276,6 +278,10 @@ namespace Options
{
settings.shutdown_enabled = stringToBool(value);
}
else if (var == "game.is_y_axis_inverted")
{
settings.is_y_axis_inverted = stringToBool(value);
}
// Opciones de mandos
else if (var == "controller.0.name")