From b6043b2eaa4c5d101e6ac44a3c2d1233e4b688e5 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Mon, 31 Jul 2023 19:06:16 -0300 Subject: [PATCH] Update default joystick profile Add `GO_TO_PREVIOUS_VIEW` AND `GO_TO_NEXT_VIEW` to the default profile and change the button assigned to going full-screen. Reorganize the other accordingly. --- src/assets/joystick-profiles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/joystick-profiles.ts b/src/assets/joystick-profiles.ts index c5f61249d..ae6f2b640 100644 --- a/src/assets/joystick-profiles.ts +++ b/src/assets/joystick-profiles.ts @@ -18,10 +18,10 @@ export const cockpitStandardToProtocols: ProtocolControllerMapping = { { protocol: JoystickProtocol.MAVLink, value: 1 }, { protocol: JoystickProtocol.MAVLink, value: 2 }, { protocol: JoystickProtocol.MAVLink, value: 3 }, + { protocol: JoystickProtocol.CockpitAction, value: CockpitAction.GO_TO_PREVIOUS_VIEW }, + { protocol: JoystickProtocol.CockpitAction, value: CockpitAction.GO_TO_NEXT_VIEW }, { protocol: JoystickProtocol.MAVLink, value: 9 }, { protocol: JoystickProtocol.MAVLink, value: 10 }, - { protocol: JoystickProtocol.CockpitAction, value: CockpitAction.TOGGLE_FULL_SCREEN }, - { protocol: undefined, value: undefined }, { protocol: JoystickProtocol.MAVLink, value: 4 }, { protocol: JoystickProtocol.MAVLink, value: 6 }, { protocol: JoystickProtocol.MAVLink, value: 7 }, @@ -31,7 +31,7 @@ export const cockpitStandardToProtocols: ProtocolControllerMapping = { { protocol: JoystickProtocol.MAVLink, value: 13 }, { protocol: JoystickProtocol.MAVLink, value: 14 }, { protocol: JoystickProtocol.MAVLink, value: 5 }, - { protocol: undefined, value: undefined }, + { protocol: JoystickProtocol.CockpitAction, value: CockpitAction.TOGGLE_FULL_SCREEN }, ], }