mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
(RMenu) Fixes key repeat
This commit is contained in:
parent
4725f56865
commit
e492425700
@ -3138,6 +3138,10 @@ uint64_t rgui_input(void)
|
||||
rgui->trigger_state = input_state & ~rgui->old_input_state;
|
||||
|
||||
bool keys_pressed = (input_state & (
|
||||
(1ULL << DEVICE_NAV_LEFT) |
|
||||
(1ULL << DEVICE_NAV_RIGHT) |
|
||||
(1ULL << DEVICE_NAV_UP) |
|
||||
(1ULL << DEVICE_NAV_DOWN) |
|
||||
(1ULL << DEVICE_NAV_LEFT_ANALOG_L) |
|
||||
(1ULL << DEVICE_NAV_RIGHT_ANALOG_L) |
|
||||
(1ULL << DEVICE_NAV_UP_ANALOG_L) |
|
||||
@ -3151,7 +3155,7 @@ uint64_t rgui_input(void)
|
||||
(1ULL << DEVICE_NAV_R2)
|
||||
));
|
||||
rgui->do_held = (keys_pressed || shoulder_buttons_pressed) &&
|
||||
!(input_state & DEVICE_NAV_MENU);
|
||||
!(input_state & (1ULL << DEVICE_NAV_MENU));
|
||||
|
||||
return input_state;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user