mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-01 13:41:28 +00:00
Allow super twitchy touch joystick
This commit is contained in:
parent
c59b18d176
commit
f608de450e
|
@ -669,9 +669,6 @@ public class Apple2JoystickSettingsMenu extends Apple2AbstractMenu {
|
||||||
return _sliderView(activity, this, JOYSTICK_BUTTON_THRESHOLD_NUM_CHOICES, new IPreferenceSlider() {
|
return _sliderView(activity, this, JOYSTICK_BUTTON_THRESHOLD_NUM_CHOICES, new IPreferenceSlider() {
|
||||||
@Override
|
@Override
|
||||||
public void saveInt(int progress) {
|
public void saveInt(int progress) {
|
||||||
if (progress == 0) {
|
|
||||||
progress = 1;
|
|
||||||
}
|
|
||||||
progress *= getJoystickButtonSwitchThresholdScale(activity);
|
progress *= getJoystickButtonSwitchThresholdScale(activity);
|
||||||
Apple2Preferences.setJSONPref(self, progress);
|
Apple2Preferences.setJSONPref(self, progress);
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,6 +275,8 @@ static void _subvariant_touchMove(subvariant_s *subvariant, int dx, int dy, bool
|
||||||
subvariant->scancodes[REPEAT_IDX_B] = -1;
|
subvariant->scancodes[REPEAT_IDX_B] = -1;
|
||||||
subvariant->isShifted[REPEAT_IDX_A] = subvariant->rosetteShift[ROSETTE_CENTER];
|
subvariant->isShifted[REPEAT_IDX_A] = subvariant->rosetteShift[ROSETTE_CENTER];
|
||||||
subvariant->isShifted[REPEAT_IDX_B] = -1;
|
subvariant->isShifted[REPEAT_IDX_B] = -1;
|
||||||
|
} else {
|
||||||
|
// ambiguous, possibly jitter, or user is beginning to swipe to octant ...
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user