notaz.gp2x.de
/
sdl_omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hi Sam
[sdl_omap.git]
/
src
/
video
/
omapdss
/
osdl_input.c
diff --git
a/src/video/omapdss/osdl_input.c
b/src/video/omapdss/osdl_input.c
index
94994d1
..
e6fb1f7
100644
(file)
--- 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;
}
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))
if ((unsigned int)ev.value > 1)
continue; /* not key up/down */
if ((unsigned int)ev.code >= ARRAY_SIZE(osdl_evdev_map))