From e07d8f322aedb003b763ca750e1fa037b1b7a1b7 Mon Sep 17 00:00:00 2001 From: GradualSyrup <68757075+GradualSyrup@users.noreply.github.com> Date: Sun, 30 Jul 2023 11:46:12 -0500 Subject: [PATCH] Lower trigger navigation threshold for plugs (#543) --- src/common/menu.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/menu.rs b/src/common/menu.rs index 1332c3c..ebfdcd8 100644 --- a/src/common/menu.rs +++ b/src/common/menu.rs @@ -227,13 +227,13 @@ pub fn handle_get_npad_state(state: *mut NpadGcState, controller_id: *const u32) BUTTON_PRESSES.up.is_pressed = true; } - // For digital triggers: these at TRIGGER_MAX means we should consider a press + // For digital triggers: these pressed 1/3 of the way mean we should consider a press if controller_is_gcc(*controller_id) { - if (*state).LTrigger == 0x7FFF { + if (*state).LTrigger >= 0x2AAA { BUTTON_PRESSES.l.is_pressed = true; } - if (*state).RTrigger == 0x7FFF { + if (*state).RTrigger >= 0x2AAA { BUTTON_PRESSES.r.is_pressed = true; } }