fix: rotate

This commit is contained in:
玖叁 2024-12-28 00:40:01 +08:00
parent e168f08aa4
commit 33bd3eed44
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ fun ControlSingleJoystickModeControlPanel(
modifier = Modifier.pointerInteropFilter { event -> modifier = Modifier.pointerInteropFilter { event ->
when (event.action) { when (event.action) {
MotionEvent.ACTION_DOWN -> { MotionEvent.ACTION_DOWN -> {
viewModel.sendXYR(0, 0, 50) viewModel.sendXYR(0, 0, -50)
true true
} }
MotionEvent.ACTION_UP -> { MotionEvent.ACTION_UP -> {
@ -109,7 +109,7 @@ fun ControlSingleJoystickModeControlPanel(
modifier = Modifier.pointerInteropFilter { event -> modifier = Modifier.pointerInteropFilter { event ->
when (event.action) { when (event.action) {
MotionEvent.ACTION_DOWN -> { MotionEvent.ACTION_DOWN -> {
viewModel.sendXYR(0, 0, -50) viewModel.sendXYR(0, 0, 50)
true true
} }
MotionEvent.ACTION_UP -> { MotionEvent.ACTION_UP -> {