mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-04 22:46:46 +00:00
Don't set do_held on left/right.
Fixes a bug where NAV_MENU was checked for and not (1 << NAV_MENU).
This commit is contained in:
parent
7903cc5658
commit
f9cfface71
@ -2565,14 +2565,13 @@ uint64_t rgui_input(void)
|
||||
input_state |= input_key_pressed_func(RARCH_MENU_TOGGLE) ? (1ULL << DEVICE_NAV_MENU) : 0;
|
||||
#endif
|
||||
|
||||
|
||||
rgui->trigger_state = input_state & ~rgui->old_input_state;
|
||||
|
||||
rgui->do_held = (input_state & (
|
||||
(1ULL << DEVICE_NAV_UP) |
|
||||
(1ULL << DEVICE_NAV_DOWN) |
|
||||
(1ULL << DEVICE_NAV_LEFT) |
|
||||
(1ULL << DEVICE_NAV_RIGHT))) &&
|
||||
!(input_state & DEVICE_NAV_MENU);
|
||||
(1ULL << DEVICE_NAV_DOWN))) &&
|
||||
!(input_state & (1ULL << DEVICE_NAV_MENU));
|
||||
|
||||
return input_state;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user