From 9cfa5f35cbe68f088348d80ca7c22bebfb89f353 Mon Sep 17 00:00:00 2001 From: TrueZhuangjia Date: Wed, 29 Jan 2025 16:10:01 +0800 Subject: [PATCH] fix touchPad sensitivity slider issue. - stage manager version --- Limelight/Limelight-Info.plist | 2 +- .../LayoutOnScreenControlsViewController.m | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Limelight/Limelight-Info.plist b/Limelight/Limelight-Info.plist index f29ea4d0..541e31d5 100644 --- a/Limelight/Limelight-Info.plist +++ b/Limelight/Limelight-Info.plist @@ -74,7 +74,7 @@ armv7 UIRequiresFullScreen - + UIStatusBarHidden UISupportedInterfaceOrientations diff --git a/Limelight/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m b/Limelight/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m index f19f52e9..c3d8a40e 100644 --- a/Limelight/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m +++ b/Limelight/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m @@ -407,7 +407,10 @@ bool showStickIndicatorOffsetSlider = [nonVectorStickPads containsObject:self->selectedButtonView.keyString]; self.sensitivityFactorSlider.hidden = self->sensitivitySliderLabel.hidden = !showSensitivityFactorSlider; self.stickIndicatorOffsetSlider.hidden = self->stickIndicatorOffsetExplain.hidden = self->stickIndicatorOffsetSliderLabel.hidden = !showStickIndicatorOffsetSlider; - if(showSensitivityFactorSlider) [sensitivitySliderLabel setText:[LocalizationHelper localizedStringForKey:@"Sensitivity: %.2f", self->selectedButtonView.sensitivityFactor]]; + if(showSensitivityFactorSlider){ + [self.sensitivityFactorSlider setValue:self->selectedButtonView.sensitivityFactor]; + [sensitivitySliderLabel setText:[LocalizationHelper localizedStringForKey:@"Sensitivity: %.2f", self->selectedButtonView.sensitivityFactor]]; + } if(showStickIndicatorOffsetSlider){ // illustrating the indicator offset, [selectedButtonView.stickBallLayer removeFromSuperlayer];