fix LSPAD, RSPAD indicator visual effect glitches
This commit is contained in:
1 parent
16b5df7dd1
commit
5d66c17bc1
1 file changed
+2
-2
@@ -1086,14 +1086,14 @@ import UIKit
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
case "LSPAD":
|
case "LSPAD":
|
||||||
DispatchQueue.global(qos: .userInteractive).async {
|
|
||||||
self.updateTouchLocation(touch: touches.first!)
|
self.updateTouchLocation(touch: touches.first!)
|
||||||
|
DispatchQueue.global(qos: .userInteractive).async {
|
||||||
self.sendLeftStickTouchPadEvent(inputX: self.offSetX * self.sensitivityFactor, inputY: self.offSetY * self.sensitivityFactor)
|
self.sendLeftStickTouchPadEvent(inputX: self.offSetX * self.sensitivityFactor, inputY: self.offSetY * self.sensitivityFactor)
|
||||||
}
|
}
|
||||||
if widgetType == WidgetTypeEnum.touchPad {updateStickIndicator()}
|
if widgetType == WidgetTypeEnum.touchPad {updateStickIndicator()}
|
||||||
case "RSPAD":
|
case "RSPAD":
|
||||||
DispatchQueue.global(qos: .userInteractive).async {
|
|
||||||
self.updateTouchLocation(touch: touches.first!)
|
self.updateTouchLocation(touch: touches.first!)
|
||||||
|
DispatchQueue.global(qos: .userInteractive).async {
|
||||||
self.sendRightStickTouchPadEvent(inputX: self.offSetX * self.sensitivityFactor, inputY: self.offSetY * self.sensitivityFactor)
|
self.sendRightStickTouchPadEvent(inputX: self.offSetX * self.sensitivityFactor, inputY: self.offSetY * self.sensitivityFactor)
|
||||||
}
|
}
|
||||||
if widgetType == WidgetTypeEnum.touchPad {updateStickIndicator()}
|
if widgetType == WidgetTypeEnum.touchPad {updateStickIndicator()}
|
||||||
|
|||||||
Reference in new issue
Block a user