From e93d031f867ec1b5633efe582fcb82d8f8633895 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Thu, 10 Jul 2025 12:52:51 +0800 Subject: [PATCH] - make oscEnabled when gyroMode is not off - make it unable to hot switch oscEnabled to false in streaming --- VoidLink/Input/ControllerSupport.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VoidLink/Input/ControllerSupport.m b/VoidLink/Input/ControllerSupport.m index 4091a16a..47f1d2b2 100644 --- a/VoidLink/Input/ControllerSupport.m +++ b/VoidLink/Input/ControllerSupport.m @@ -1334,7 +1334,7 @@ static const double MOUSE_SPEED_DIVISOR = 1.25; DataManager* dataMan = [[DataManager alloc] init]; TemporarySettings* currentSettings = [dataMan getSettings]; - _oscEnabled = (OnScreenControlsLevel)[[dataMan getSettings].onscreenControls integerValue] != OnScreenControlsLevelOff; + _oscEnabled = _oscEnabled || (OnScreenControlsLevel)[currentSettings.onscreenControls integerValue] != OnScreenControlsLevelOff || streamConfig.gyroMode != GyroModeOff; _gyroSensitivity = currentSettings.gyroSensitivity.floatValue; }