1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-24 10:54:16 +00:00

Fixes to menu; use left side of screen

This commit is contained in:
jugeeya 2022-03-21 00:51:58 -07:00
parent 3a9dae3576
commit 2c3e0d752c
3 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ pub fn handle_get_npad_state(state: *mut NpadGcState, _controller_id: *const u32
if (*state).Buttons & (1 << 0) > 0 {
BUTTON_PRESSES.a.is_pressed = true;
}
if (*state).Buttons & (1 << 1) > 0 {
if (*state).Buttons & (1 << 1) > 0 && frame_counter::get_frame_count(FRAME_COUNTER_INDEX) == 0 {
BUTTON_PRESSES.b.is_pressed = true;
}
if (*state).Buttons & (1 << 8) > 0 {

View file

@ -1134,7 +1134,7 @@ pub static DEFAULT_MENU: TrainingModpackMenu = TrainingModpackMenu {
throw_delay: MedDelay::empty(),
pummel_delay: MedDelay::empty(),
buff_state: BuffOption::empty(),
quick_menu: OnOff::On,
quick_menu: OnOff::Off,
};
pub static mut MENU: TrainingModpackMenu = DEFAULT_MENU;