From f9cfface71700ca1c17cdec5bda2be613b8d10d4 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 11 May 2013 14:26:05 +0200 Subject: [PATCH] Don't set do_held on left/right. Fixes a bug where NAV_MENU was checked for and not (1 << NAV_MENU). --- frontend/menu/rgui.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index c15ea5e7a9..fe01f58a1f 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -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; }