From 7f488f46d5b033843d74b760f4c346e8ac3b342e Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 11 Sep 2018 01:32:24 +0800 Subject: [PATCH] Disable Joy->Kbd map while OSD is active. --- input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.cpp b/input.cpp index 52f6b55..6056573 100644 --- a/input.cpp +++ b/input.cpp @@ -1595,7 +1595,7 @@ static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int { case EV_KEY: - if (ev->code < 1024 && input[dev].jkmap[ev->code]) ev->code = input[dev].jkmap[ev->code]; + if (ev->code < 1024 && input[dev].jkmap[ev->code] && !user_io_osd_is_visible()) ev->code = input[dev].jkmap[ev->code]; //joystick buttons, digital directions if (ev->code >= 256)