From 6fd628f3a2b327fe6187afd142eaf1742e0a2a48 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 6 Dec 2023 21:45:43 -0300 Subject: [PATCH] joystick-config-view: Add support for mapping with modifier keys --- src/views/ConfigurationJoystickView.vue | 239 +++++++++--------------- 1 file changed, 90 insertions(+), 149 deletions(-) diff --git a/src/views/ConfigurationJoystickView.vue b/src/views/ConfigurationJoystickView.vue index ee4fe9eb9..9c0032bc1 100644 --- a/src/views/ConfigurationJoystickView.vue +++ b/src/views/ConfigurationJoystickView.vue @@ -32,16 +32,23 @@

Could not stablish communication with the vehicle.

Button functions will appear as numbers. If connection is restablished, function names will appear.

+
+ +

{{ joystick.model }} controller

-
+
Update mapping
-
-
- {{ - [JoystickAxis.A0, JoystickAxis.A2].includes(Number(input.value)) - ? 'mdi-pan-horizontal' - : 'mdi-pan-vertical' +
+
+ + {{ + [JoystickAxis.A0, JoystickAxis.A2].includes(input.id) ? 'mdi-pan-horizontal' : 'mdi-pan-vertical' }}
-
+
Calibrate

@@ -196,27 +205,23 @@

Assign
-
+
{{ protocol }}
@@ -232,32 +237,33 @@