quick double tap button for lsWheel/rsWheel

This commit is contained in:
TrueZhuanjia committed 2025-12-27 14:15:51 +08:00
1 parent cdbe480863
commit 17e3fd07f9
1 file changed
+5 -2
+5 -2
View File
@@ -301,9 +301,9 @@ import SVGKit
self.motionControlButtonString = Set(self.comboButtonStrings).intersection(Set(CommandManager.motionControlButtonCmds)).first ?? "" self.motionControlButtonString = Set(self.comboButtonStrings).intersection(Set(CommandManager.motionControlButtonCmds)).first ?? ""
switch self.cmdString { switch self.cmdString {
case "LSPAD", "LSVPAD": case "LSPAD", "LSVPAD", "LSWHEEL":
self.comboButtonStrings = ["OSCL3"] self.comboButtonStrings = ["OSCL3"]
case "RSPAD", "RSVPAD": case "RSPAD", "RSVPAD", "RSWHEEL":
self.comboButtonStrings = ["OSCR3"] self.comboButtonStrings = ["OSCR3"]
case "DS4TOUCH": case "DS4TOUCH":
self.comboButtonStrings = ["DS4TCHBTN"] self.comboButtonStrings = ["DS4TCHBTN"]
@@ -1726,6 +1726,9 @@ import SVGKit
case "LSWHEEL","RSWHEEL": case "LSWHEEL","RSWHEEL":
self.getVector(touch: touches.first!) self.getVector(touch: touches.first!)
self.handleStickWheelMove(touch: touches.first!) self.handleStickWheelMove(touch: touches.first!)
if quickDoubleTapDetected {
self.showl3r3Indicator()
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)}
case "LSPAD","RSPAD": case "LSPAD","RSPAD":
self.showStickIndicator() self.showStickIndicator()
if quickDoubleTapDetected { if quickDoubleTapDetected {