mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
fix: keep mapped desktop pointer visible and update it each frame
This commit is contained in:
1 parent
45a496b802
commit
3dd6aeef46
7 files changed
+258
-9
No files matched your search
@@ -79,7 +79,7 @@ class InputRouter(private val output: InputOutput) {
|
||||
val cy = if (abs(channel.y) > 0.12f) channel.y else 0f
|
||||
when (val action = channel.action) {
|
||||
is InputAction.Pointer -> { x += cx * action.speed; y += cy * action.speed }
|
||||
is InputAction.Scroll -> scroll -= cy * action.speed
|
||||
is InputAction.Scroll -> scroll += cy * action.speed
|
||||
else -> Unit
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user