onscreen widget fix

motionHandler fix
This commit is contained in:
True Zhuanjia
2026-08-17 20:41:02 +08:00
parent 514dbb98e7
commit 8795a9f173
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -201,6 +201,9 @@ import CoreMotion
if motion.sensorsRequireManualActivation {
motion.sensorsActive = true
}
if rollToLeftStick {
leftStickMotion = 0
}
if motion.sensorsActive {
motion.valueChangedHandler = { [weak self] motion in
self?.handleMotionData(gcMotion: motion)
+5 -1
View File
@@ -705,6 +705,7 @@ import ObjectiveC.runtime
self.isMultipleTouchEnabled = self.widgetType == WidgetTypeEnum.button
|| CommandManager.mousePadWithButtonActions.contains(self.touchPadString)
|| self.touchPadString == "MAGNIFIER"
|| self.touchPadString == "DS4TOUCH"
}
// ======================================================================================================
@@ -2270,7 +2271,10 @@ import ObjectiveC.runtime
case "DS4TOUCH":
if quickDoubleTapDetected {
self.showl3r3Indicator()
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)}
if activeTouchesCount < 2 {
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)
}
}
case "DPAD", "WASDPAD", "ARROWPAD":
if activeTouchesCount == 1 {
// showLrudBall(at: touchBeganLocation)