fix LSPAD, RSPAD indicator visual effect glitches

This commit is contained in:
TrueZhuangjia
2025-03-30 14:00:25 +08:00
committed by TrueZhuanjia
parent 16b5df7dd1
commit 5d66c17bc1
+2 -2
View File
@@ -1086,14 +1086,14 @@ import UIKit
}
break
case "LSPAD":
self.updateTouchLocation(touch: touches.first!)
DispatchQueue.global(qos: .userInteractive).async {
self.updateTouchLocation(touch: touches.first!)
self.sendLeftStickTouchPadEvent(inputX: self.offSetX * self.sensitivityFactor, inputY: self.offSetY * self.sensitivityFactor)
}
if widgetType == WidgetTypeEnum.touchPad {updateStickIndicator()}
case "RSPAD":
self.updateTouchLocation(touch: touches.first!)
DispatchQueue.global(qos: .userInteractive).async {
self.updateTouchLocation(touch: touches.first!)
self.sendRightStickTouchPadEvent(inputX: self.offSetX * self.sensitivityFactor, inputY: self.offSetY * self.sensitivityFactor)
}
if widgetType == WidgetTypeEnum.touchPad {updateStickIndicator()}