projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added SDL event filter to track mouse position from mouse motion events
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 6f27daf6e94a24461ce60311ce0b1630139fdcba..7fcb784d66c9f7608f00dad238a52b76cc0ce464 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-1623,6
+1623,11
@@
void SetAudioMode(boolean enabled)
// event functions
// ============================================================================
// event functions
// ============================================================================
+void InitEventFilter(EventFilter filter_function)
+{
+ SDL_SetEventFilter(filter_function, NULL);
+}
+
boolean PendingEvent(void)
{
return (SDL_PollEvent(NULL) ? TRUE : FALSE);
boolean PendingEvent(void)
{
return (SDL_PollEvent(NULL) ? TRUE : FALSE);