mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-08-15 05:27:32 +00:00
Don't allow joy_step values < 1
This commit is contained in:
@@ -126,6 +126,10 @@
|
|||||||
joy_auto_recenter = [defaults integerForKey:kApple2JoystickAutoRecenter];
|
joy_auto_recenter = [defaults integerForKey:kApple2JoystickAutoRecenter];
|
||||||
[self.joystickRecenter setState:joy_auto_recenter ? NSOnState : NSOffState];
|
[self.joystickRecenter setState:joy_auto_recenter ? NSOnState : NSOffState];
|
||||||
joy_step = [defaults integerForKey:kApple2JoystickStep];
|
joy_step = [defaults integerForKey:kApple2JoystickStep];
|
||||||
|
if (!joy_step)
|
||||||
|
{
|
||||||
|
joy_step = 1;
|
||||||
|
}
|
||||||
[self.joystickStepLabel setIntegerValue:joy_step];
|
[self.joystickStepLabel setIntegerValue:joy_step];
|
||||||
[self.joystickStepper setIntegerValue:joy_step];
|
[self.joystickStepper setIntegerValue:joy_step];
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user