From 8a86e7f0de3ebad21e1070924900159c10bd306c Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 31 Jan 2024 15:58:08 -0300 Subject: [PATCH] joystick-config-page: Force joystick forwarding to stay disabled while in the config page --- src/views/ConfigurationJoystickView.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/ConfigurationJoystickView.vue b/src/views/ConfigurationJoystickView.vue index 4805278e4..cef53497a 100644 --- a/src/views/ConfigurationJoystickView.vue +++ b/src/views/ConfigurationJoystickView.vue @@ -313,6 +313,13 @@ onUnmounted(() => { controllerStore.enableForwarding = true }) +// Does not let the joystick forwarding to be enabled while the user is in this page +// This could happen, for example, when the joystick is reconnected while in this page +watch( + () => controllerStore.enableForwarding, + () => (controllerStore.enableForwarding = false) +) + const currentJoystick = ref() const currentButtonInputs = ref([]) const currentAxisInputs = ref([])