From 1d36e3472f9a309ef4b36c456a387f22ba46e1b9 Mon Sep 17 00:00:00 2001 From: Sorgelig Date: Sun, 10 Sep 2023 00:16:46 +0800 Subject: [PATCH] input: fix broken button skip in buttons definition. --- input.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/input.cpp b/input.cpp index 23aff77..6206bf3 100644 --- a/input.cpp +++ b/input.cpp @@ -2576,8 +2576,6 @@ static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int if (mapping && mapping_type == 3) { - printf("cancel = %d, enter = %d\n", cancel, enter); - if (map_skip) { mapping_finish = 1; @@ -2605,7 +2603,7 @@ static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int if ((ev->type == EV_ABS || ev->type == EV_REL) && (ev->code == 7 || ev->code == 8) && input[dev].quirk != QUIRK_WHEEL) return; // protection against joysticks generating 2 codes per button - if (ev->type == EV_KEY && !(mapping < 2 && mapping_button == SYS_BTN_OSD_KTGL)) + if (ev->type == EV_KEY && !(mapping < 2 && mapping_button == SYS_BTN_OSD_KTGL) && !map_skip) { if (!mapping_current_key) {