1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-27 20:34:03 +00:00

Lower trigger navigation threshold for plugs (#543)

This commit is contained in:
GradualSyrup 2023-07-30 11:46:12 -05:00 committed by GitHub
parent ace4654f3d
commit e07d8f322a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,13 +227,13 @@ pub fn handle_get_npad_state(state: *mut NpadGcState, controller_id: *const u32)
BUTTON_PRESSES.up.is_pressed = true; 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 controller_is_gcc(*controller_id) {
if (*state).LTrigger == 0x7FFF { if (*state).LTrigger >= 0x2AAA {
BUTTON_PRESSES.l.is_pressed = true; BUTTON_PRESSES.l.is_pressed = true;
} }
if (*state).RTrigger == 0x7FFF { if (*state).RTrigger >= 0x2AAA {
BUTTON_PRESSES.r.is_pressed = true; BUTTON_PRESSES.r.is_pressed = true;
} }
} }