mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-30 22:00:16 +00:00
Initial
This commit is contained in:
parent
ebe5741298
commit
dd8c49c04b
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue