From 33bd3eed44af58477e9fa36c77c6ea0fb73595bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=96=E5=8F=81?= Date: Sat, 28 Dec 2024 00:40:01 +0800 Subject: [PATCH] fix: rotate --- .../icu/fur93/esp32_car/page/ControlSingleJoystickMode.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/icu/fur93/esp32_car/page/ControlSingleJoystickMode.kt b/app/src/main/java/icu/fur93/esp32_car/page/ControlSingleJoystickMode.kt index c42ffdc..89b5aca 100644 --- a/app/src/main/java/icu/fur93/esp32_car/page/ControlSingleJoystickMode.kt +++ b/app/src/main/java/icu/fur93/esp32_car/page/ControlSingleJoystickMode.kt @@ -85,7 +85,7 @@ fun ControlSingleJoystickModeControlPanel( modifier = Modifier.pointerInteropFilter { event -> when (event.action) { MotionEvent.ACTION_DOWN -> { - viewModel.sendXYR(0, 0, 50) + viewModel.sendXYR(0, 0, -50) true } MotionEvent.ACTION_UP -> { @@ -109,7 +109,7 @@ fun ControlSingleJoystickModeControlPanel( modifier = Modifier.pointerInteropFilter { event -> when (event.action) { MotionEvent.ACTION_DOWN -> { - viewModel.sendXYR(0, 0, -50) + viewModel.sendXYR(0, 0, 50) true } MotionEvent.ACTION_UP -> {