controller report issue
This commit is contained in:
1 parent
ab14e18b4a
commit
f7eae4cee9
1 file changed
+12
-7
@@ -429,6 +429,8 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
CGFloat pitchSensitivityPercent = [self map_velocFactorDisplay_fromSliderValue:self.pitchSensitivitySlider.value];
|
CGFloat pitchSensitivityPercent = [self map_velocFactorDisplay_fromSliderValue:self.pitchSensitivitySlider.value];
|
||||||
CGFloat rollSensitivityPercent = [self map_velocFactorDisplay_fromSliderValue:self.rollSensitivitySlider.value];
|
CGFloat rollSensitivityPercent = [self map_velocFactorDisplay_fromSliderValue:self.rollSensitivitySlider.value];
|
||||||
TouchMode touchMode = [self isNotNativeTouchOnly] ? self.touchModeSelector1.selectedSegmentIndex : NativeTouchOnly;
|
TouchMode touchMode = [self isNotNativeTouchOnly] ? self.touchModeSelector1.selectedSegmentIndex : NativeTouchOnly;
|
||||||
|
bool leftStickMinOffsetSliderNotMoved = (int16_t)(oscProfile.physicalLeftStickMinOffset) == (int16_t)self.leftStickMinOffsetSlider.value;
|
||||||
|
bool rightStickMinOffsetSliderNotMoved = (int16_t)(oscProfile.physicalRightStickMinOffset) == (int16_t)self.rightStickMinOffsetSlider.value;
|
||||||
|
|
||||||
bool configNotChanged = (
|
bool configNotChanged = (
|
||||||
(int)oscProfile.touchMode == touchMode
|
(int)oscProfile.touchMode == touchMode
|
||||||
@@ -448,8 +450,8 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
&& oscProfile.synthesizePhysicalStick == self.synthPhysicalInputSwitch.isOn
|
&& oscProfile.synthesizePhysicalStick == self.synthPhysicalInputSwitch.isOn
|
||||||
&& oscProfile.controllerGyroSwitchMode == self.controllerGyroSwitchButtonSetter.selectedSegmentIndex
|
&& oscProfile.controllerGyroSwitchMode == self.controllerGyroSwitchButtonSetter.selectedSegmentIndex
|
||||||
&& oscProfile.reverseGyroHoldButton == self.reverseHoldButtonSwitch.isOn
|
&& oscProfile.reverseGyroHoldButton == self.reverseHoldButtonSwitch.isOn
|
||||||
&& (int16_t)(oscProfile.physicalLeftStickMinOffset) == (int16_t)self.leftStickMinOffsetSlider.value
|
&& leftStickMinOffsetSliderNotMoved
|
||||||
&& (int16_t)(oscProfile.physicalRightStickMinOffset) == (int16_t)self.rightStickMinOffsetSlider.value
|
&& rightStickMinOffsetSliderNotMoved
|
||||||
&& oscProfile.pressureCurveEnabled == self.pressureCurveSwitch.isOn
|
&& oscProfile.pressureCurveEnabled == self.pressureCurveSwitch.isOn
|
||||||
&& oscProfile.doubleTapShorcutEnabled == self.doubleTapShortcutSwitch.isOn
|
&& oscProfile.doubleTapShorcutEnabled == self.doubleTapShortcutSwitch.isOn
|
||||||
&& oscProfile.squeezeShorcutEnabled == self.squeezeShortcutSwitch.isOn
|
&& oscProfile.squeezeShorcutEnabled == self.squeezeShortcutSwitch.isOn
|
||||||
@@ -486,6 +488,14 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
[oscProfileMan replaceSelectedProfileWith:oscProfile overwriteDefault:YES];
|
[oscProfileMan replaceSelectedProfileWith:oscProfile overwriteDefault:YES];
|
||||||
if(PencilHandler.shared) [PencilHandler.shared setupPressureLUTWithProfile:oscProfile];
|
if(PencilHandler.shared) [PencilHandler.shared setupPressureLUTWithProfile:oscProfile];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!leftStickMinOffsetSliderNotMoved || !rightStickMinOffsetSliderNotMoved){
|
||||||
|
if(OnScreenControls.shared){
|
||||||
|
[OnScreenControls.shared clearLeftStickTouchPadFlag];
|
||||||
|
[OnScreenControls.shared clearRightStickTouchPadFlag];
|
||||||
|
}
|
||||||
|
else LiSendControllerEvent(0, 0, 0, 0, 0, 0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (bool)contentOffsetRestored{
|
- (bool)contentOffsetRestored{
|
||||||
@@ -617,11 +627,6 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
- (void)viewWillDisappear:(BOOL)animated{
|
- (void)viewWillDisappear:(BOOL)animated{
|
||||||
[super viewWillDisappear:animated];
|
[super viewWillDisappear:animated];
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||||
if(OnScreenControls.shared){
|
|
||||||
[OnScreenControls.shared clearLeftStickTouchPadFlag];
|
|
||||||
[OnScreenControls.shared clearRightStickTouchPadFlag];
|
|
||||||
}
|
|
||||||
else LiSendControllerEvent(0, 0, 0, 0, 0, 0, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidDisappear:(BOOL)animated{
|
- (void)viewDidDisappear:(BOOL)animated{
|
||||||
|
|||||||
Reference in new issue
Block a user