enable track point for all on screen widgets

This commit is contained in:
True Zhuanjia committed 2026-02-12 15:51:02 +08:00
1 parent 4dc6220f28
commit 6356427454
1 file changed
+4 -2
+4 -2
View File
@@ -469,10 +469,12 @@ import SVGKit
self.hasComponent = self.isStickWheel self.hasComponent = self.isStickWheel
self.hasL3R3Indicator = !self.isStickWheel && !self.isDirectionPad && self.widgetType == WidgetTypeEnum.touchPad self.hasL3R3Indicator = !self.isStickWheel && !self.isDirectionPad && self.widgetType == WidgetTypeEnum.touchPad
/*
self.hasTrackPoint = (CommandManager.vectorTouchPads.contains(self.touchPadString) self.hasTrackPoint = (CommandManager.vectorTouchPads.contains(self.touchPadString)
|| self.isStickWheel || self.isStickWheel
|| (self.widgetType == WidgetTypeEnum.button || (self.widgetType == WidgetTypeEnum.button
&& (buttonMode == .slideAndHold || buttonMode == .slideToToggle))) && (buttonMode == .slideAndHold || buttonMode == .slideToToggle)))*/
self.hasTrackPoint = true
} }
// ====================================================================================================== // ======================================================================================================
@@ -1886,7 +1888,7 @@ import SVGKit
} }
} }
if self.hasTrackPoint, self.widgetType == .touchPad, OnScreenWidgetView.trackPointEnabled { if self.hasTrackPoint, OnScreenWidgetView.trackPointEnabled {
CATransaction.begin() CATransaction.begin()
CATransaction.setDisableActions(true) CATransaction.setDisableActions(true)
if let touch = touches.first { if let touch = touches.first {