Skip to content

Commit

Permalink
Enable Joysticks by default on all platforms, it's 2024 after all
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiou87 committed Oct 16, 2024
1 parent b8d0482 commit 2e1b3fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,8 @@ void load_config(void) {
config.unlimited_gas = 0;

for (int idx = 0; idx < MAX_JOYSTICK_COUNT; idx++) {
#ifdef __SWITCH__
config.joystick[idx] = idx;
config.joystick_calibrated[idx] = 1;
#else
config.joystick[idx] = -1;
config.joystick_calibrated[idx] = 0;
#endif
}

faili = settings_open(CONFIGURATION_FILENAME, "rb");
Expand Down
6 changes: 0 additions & 6 deletions src/triplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3609,7 +3609,6 @@ int main(int argc, char *argv[]) {

parametri_kpl = argc;


if (findparameter("-?") || findparameter("-h") || findparameter("--help") || findparameter("-help")) {
printf("Triplane Classic " TRIPLANE_VERSION " - a side-scrolling dogfighting game.\n");
printf("Copyright (C) 1996,1997,2009 Dodekaedron Software Creations Oy\n");
Expand Down Expand Up @@ -3666,13 +3665,8 @@ int main(int argc, char *argv[]) {
if (anyJoystickCalibrated) {
if (!load_joysticks_data(CALIBRATION_FILENAME)) {
for (int idx = 0; idx < MAX_JOYSTICK_COUNT; idx++) {
#ifdef __SWITCH__
config.joystick_calibrated[idx] = 1;
config.joystick[idx] = idx;
#else
config.joystick_calibrated[idx] = 0;
config.joystick[idx] = -1;
#endif
}
loading_text("Unable to load calibration data.");
}
Expand Down

0 comments on commit 2e1b3fd

Please sign in to comment.