Allow super twitchy touch joystick

This commit is contained in:
Aaron Culliney 2019-10-20 18:40:59 -07:00
parent c59b18d176
commit f608de450e
2 changed files with 2 additions and 3 deletions

View File

@ -669,9 +669,6 @@ public class Apple2JoystickSettingsMenu extends Apple2AbstractMenu {
return _sliderView(activity, this, JOYSTICK_BUTTON_THRESHOLD_NUM_CHOICES, new IPreferenceSlider() {
@Override
public void saveInt(int progress) {
if (progress == 0) {
progress = 1;
}
progress *= getJoystickButtonSwitchThresholdScale(activity);
Apple2Preferences.setJSONPref(self, progress);
}

View File

@ -275,6 +275,8 @@ static void _subvariant_touchMove(subvariant_s *subvariant, int dx, int dy, bool
subvariant->scancodes[REPEAT_IDX_B] = -1;
subvariant->isShifted[REPEAT_IDX_A] = subvariant->rosetteShift[ROSETTE_CENTER];
subvariant->isShifted[REPEAT_IDX_B] = -1;
} else {
// ambiguous, possibly jitter, or user is beginning to swipe to octant ...
}
break;
}