X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fosdl_input.c;h=e6fb1f765051e6b0d4193893f1c17d0d5480fc84;hb=090bcb85b9cebd193299c9e93f4de8c5888094f4;hp=94994d1f89ced1eb40962e20ab160bbcabaf9092;hpb=b260fb56d8eb049e5dce95a92b5c1189ea29f8b4;p=sdl_omap.git diff --git a/src/video/omapdss/osdl_input.c b/src/video/omapdss/osdl_input.c index 94994d1..e6fb1f7 100644 --- a/src/video/omapdss/osdl_input.c +++ b/src/video/omapdss/osdl_input.c @@ -625,8 +625,8 @@ int omapsdl_input_get_events(int timeout_ms, break; } - if (ev.type != EV_KEY) - continue; /* not key event */ + if (ev.type != EV_KEY || key_cb == NULL) + continue; /* not key event or not needed */ if ((unsigned int)ev.value > 1) continue; /* not key up/down */ if ((unsigned int)ev.code >= ARRAY_SIZE(osdl_evdev_map))