Mercurial > sdl-ios-xcode
comparison src/events/SDL_quit.c @ 1722:5daa04d862f1 SDL-1.3
Added a userdata parameter for event filters.
Added a function to filter the existing queued events.
Added explicit support for relative mouse mode to the API.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 30 Jun 2006 08:18:44 +0000 |
parents | eef792d31de8 |
children | 875c3cf1a12c |
comparison
equal
deleted
inserted
replaced
1721:1cc762cafff8 | 1722:5daa04d862f1 |
---|---|
86 | 86 |
87 posted = 0; | 87 posted = 0; |
88 if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) { | 88 if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) { |
89 SDL_Event event; | 89 SDL_Event event; |
90 event.type = SDL_QUIT; | 90 event.type = SDL_QUIT; |
91 if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) { | 91 if ((SDL_EventOK == NULL) |
92 || (*SDL_EventOK) (SDL_EventOKParam, &event)) { | |
92 posted = 1; | 93 posted = 1; |
93 SDL_PushEvent(&event); | 94 SDL_PushEvent(&event); |
94 } | 95 } |
95 } | 96 } |
96 return (posted); | 97 return (posted); |