Skip to content

Commit

Permalink
enhancement: When selecting CD32 model, set joystick port to CD32 also (
Browse files Browse the repository at this point in the history
fixes #1346)
  • Loading branch information
midwan committed Jun 6, 2024
1 parent f3d7197 commit 626adcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/osdep/gui/PanelQuickstart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ static void AdjustPrefs()
// No CD available
changed_prefs.cdslots[0].inuse = false;
changed_prefs.cdslots[0].type = SCSI_UNIT_DISABLED;

// Set joystick port to Default
changed_prefs.jports[1].mode = 0;
break;
case 6: // A4000
case 7: // A4000T
Expand All @@ -238,6 +241,9 @@ static void AdjustPrefs()
// No CD available
changed_prefs.cdslots[0].inuse = false;
changed_prefs.cdslots[0].type = SCSI_UNIT_DISABLED;

// Set joystick port to Default
changed_prefs.jports[1].mode = 0;
break;

case 8: // CD32
Expand All @@ -249,6 +255,8 @@ static void AdjustPrefs()
changed_prefs.cdslots[0].type = SCSI_UNIT_DEFAULT;
changed_prefs.gfx_monitor[0].gfx_size.width = 720;
changed_prefs.gfx_monitor[0].gfx_size.height = 568;
// Set joystick port to CD32 mode
changed_prefs.jports[1].mode = 7;
break;
default:
break;
Expand Down

1 comment on commit 626adcc

@giantclambake
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ~ I imagine these days it's a reasonable presumption that users have a gamepad/PS/Xbox type controller anyhow, so I think it's a safe bet ;)

Please sign in to comment.