From 1cb9360d832b2e0dcdd3f23d03af6837744b2640 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Sun, 12 Oct 2025 22:01:38 +0800 Subject: [PATCH] refactor "gyroOff" to "gyroPause" --- VoidLink/Input/CommandManager.swift | 2 +- VoidLink/Input/OnScreenWidgetView.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VoidLink/Input/CommandManager.swift b/VoidLink/Input/CommandManager.swift index 7f0cfd29..0c2f65b9 100644 --- a/VoidLink/Input/CommandManager.swift +++ b/VoidLink/Input/CommandManager.swift @@ -122,7 +122,7 @@ import UIKit @objc public static let verticalTouchPads: [String] = ["LTPAD", "RTPAD", "MOUSEWHEEL", "WHEEL"] @objc public static let bidirectionalVerticalTouchPads: [String] = ["LTPAD", "RTPAD", "MOUSEWHEEL", "WHEEL"] @objc public static let functionalButtonCmds: [String] = ["SETTINGS"] - @objc public static let motionControlButtonCmds: [String] = ["GYRO","GYROOFF","ACCEL","MOTION"] + @objc public static let motionControlButtonCmds: [String] = ["GYRO","GYROPAUSE","ACCEL","MOTION"] // @objc public static let specialGameWidgets: [String] = ["YSRSV", "YSLT", "YSRT", "YSRB", "YSB", "YSRT2", "YSRB2", "YSB2", "YSEM", "YSML", "YSMR", "YSWASD"] diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index d717776f..7ef8760e 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -1695,7 +1695,7 @@ import UIKit switch self.motionControlButtonString { case "GYRO": self.functionalButtonDelegate?.startGyroUpdate() - case "GYROOFF": + case "GYROPAUSE": self.functionalButtonDelegate?.stopGyroUpdate(interruption:false) case "ACCEL": self.functionalButtonDelegate?.startAccelUpdate() @@ -1711,7 +1711,7 @@ import UIKit switch self.motionControlButtonString { case "GYRO": self.functionalButtonDelegate?.stopGyroUpdate(interruption: false) - case "GYROOFF": + case "GYROPAUSE": self.functionalButtonDelegate?.startGyroUpdate() case "ACCEL": self.functionalButtonDelegate?.stopAccelUpdate(interruption: false)