Merge branch 'Integration' into ds5

This commit is contained in:
True Zhuanjia committed 2026-08-17 20:42:03 +08:00
commit e00e2f8000
1 file changed
+3
+3
View File
@@ -201,6 +201,9 @@ import CoreMotion
if motion.sensorsRequireManualActivation { if motion.sensorsRequireManualActivation {
motion.sensorsActive = true motion.sensorsActive = true
} }
if rollToLeftStick {
leftStickMotion = 0
}
if motion.sensorsActive { if motion.sensorsActive {
motion.valueChangedHandler = { [weak self] motion in motion.valueChangedHandler = { [weak self] motion in
self?.handleMotionData(gcMotion: motion) self?.handleMotionData(gcMotion: motion)