From 2b63fa048c0f7ca32dc3e96df18fd8d76df19c8c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 23 Mar 2025 03:36:07 +0100 Subject: Only bring up ui with controller if playstation button is pressed --- src/GlobalHotkeysJoystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GlobalHotkeysJoystick.cpp b/src/GlobalHotkeysJoystick.cpp index 50b1588..d005aa9 100644 --- a/src/GlobalHotkeysJoystick.cpp +++ b/src/GlobalHotkeysJoystick.cpp @@ -188,7 +188,7 @@ namespace gsr { if((event.type & JS_EVENT_BUTTON) == JS_EVENT_BUTTON) { if(event.number == playstation_button) playstation_button_pressed = event.value == button_pressed; - else if(event.number == options_button && event.value == button_pressed) + else if(playstation_button_pressed && event.number == options_button && event.value == button_pressed) toggle_show = true; } else if((event.type & JS_EVENT_AXIS) == JS_EVENT_AXIS && playstation_button_pressed) { const int trigger_threshold = 16383; -- cgit v1.2.3-70-g09d2