fix: rotate
This commit is contained in:
parent
e168f08aa4
commit
33bd3eed44
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in New Issue