From d4a471f8037f741b14359c72f5e5c8fb8af7ec33 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 30 Dec 2019 16:32:44 +0800 Subject: [PATCH] input: fix: coudn't skip last 2 items while initial mapping. --- menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.cpp b/menu.cpp index 21753ec..b25116b 100644 --- a/menu.cpp +++ b/menu.cpp @@ -2265,7 +2265,7 @@ void HandleUI(void) p = joy_bnames[get_map_button() - DPAD_NAMES]; if (is_menu_core()) { - if (get_map_type()) joy_bcount = 21; + if (!get_map_type()) joy_bcount = 17; if (get_map_button() == SYS_BTN_OSD_KTGL) { p = joy_button_map[DPAD_BUTTON_NAMES + get_map_type()]; @@ -4293,7 +4293,7 @@ void HandleUI(void) strcpy(joy_bnames[SYS_BTN_OSD_KTGL - DPAD_NAMES], "Menu"); strcpy(joy_bnames[SYS_BTN_CNT_OK - DPAD_NAMES], "Menu: OK"); strcpy(joy_bnames[SYS_BTN_CNT_ESC - DPAD_NAMES], "Menu: Back"); - joy_bcount = 16+1; //buttons + OSD/KTGL button + joy_bcount = 18+1; //buttons + OSD/KTGL button start_map_setting(joy_bcount + 6); // + dpad + Analog X/Y menustate = MENU_JOYDIGMAP; menusub = 0;