- feat: mouseWheel on-screen widget

This commit is contained in:
TrueZhuanjia committed 2025-09-11 21:33:15 +08:00
1 parent c3b7679268
commit 5418936816
4 files changed
+18 -4

No files matched your search

+4 -1
View File
@@ -1238,7 +1238,7 @@ import UIKit
if quickDoubleTapDetected {
self.showl3r3Indicator()
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)}
case "DPAD", "WASDPAD", "ARROWPAD":
case "DPAD", "WASDPAD", "ARROWPAD", "MOUSEWHEEL", "WHEEL":
if allSpawnedTouchesCount == 1 {showLrudBall(at: touchBeganLocation)}
if quickDoubleTapDetected {
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)
@@ -1508,6 +1508,9 @@ import UIKit
case "DPAD", "WASDPAD", "ARROWPAD":
self.updateTouchLocation(touch: touches.first!)
handleLrudTouchMove()
case "MOUSEWHEEL","WHEEL":
self.updateTouchLocation(touch: touches.first!)
LiSendHighResScrollEvent(Int16(self.deltaY*7.5*self.sensitivityFactorY))
default:
break
}