Don't allow joy_step values < 1

This commit is contained in:
Aaron Culliney 2014-12-07 14:24:09 -08:00
parent 6848bbcf61
commit 720b68e23f

View File

@ -126,6 +126,10 @@
joy_auto_recenter = [defaults integerForKey:kApple2JoystickAutoRecenter];
[self.joystickRecenter setState:joy_auto_recenter ? NSOnState : NSOffState];
joy_step = [defaults integerForKey:kApple2JoystickStep];
if (!joy_step)
{
joy_step = 1;
}
[self.joystickStepLabel setIntegerValue:joy_step];
[self.joystickStepper setIntegerValue:joy_step];
#endif