Disable Joy->Kbd map while OSD is active.

This commit is contained in:
sorgelig
2018-09-11 01:32:24 +08:00
parent 66d053f46d
commit 7f488f46d5

View File

@@ -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)