Only bring up ui with controller if playstation button is pressed

This commit is contained in:
dec05eba
2025-03-23 03:36:07 +01:00
parent 7654639f6f
commit 2b63fa048c

View File

@@ -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;