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:
Themaister 2013-05-11 14:26:05 +02:00
parent 7903cc5658
commit f9cfface71

View File

@ -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;
}