1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-30 22:00:16 +00:00
This commit is contained in:
jugeeya 2023-08-23 09:39:07 -07:00 committed by GitHub
parent ebe5741298
commit dd8c49c04b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -168,6 +168,10 @@ pub fn handle_final_input_mapping(player_idx: i32, controller_struct: &mut SomeC
}
*start_hold_frames = 0;
}
if p1_controller.current_buttons.minus() {
*start_menu_request = true;
}
}
let button_combo_requests = &mut *BUTTON_COMBO_REQUESTS.lock();

View file

@ -206,7 +206,9 @@ pub fn handle_final_input_mapping(
EVENT_QUEUE.push(Event::menu_open(menu_json));
}
});
button_mapping(ButtonConfig::PLUS, style, button_presses).then(|| {
(button_mapping(ButtonConfig::PLUS, style, button_presses)
|| button_mapping(ButtonConfig::MINUS, style, button_presses))
.then(|| {
received_input = true;
// Leave menu.
frame_counter::start_counting(FRAME_COUNTER_INDEX);