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([])