{
boolean handle_this_event = FALSE;
- NextEvent(event);
+ WaitEvent(event);
if (FilterEvents(event))
handle_this_event = TRUE;
{
Event event;
- NextEvent(&event);
+ WaitEvent(&event);
switch (event.type)
{
{
Event event;
- NextEvent(&event);
+ WaitEvent(&event);
switch (event.type)
{
/* event functions */
/* ========================================================================= */
-void SDLNextEvent(Event *event)
+void SDLWaitEvent(Event *event)
{
SDL_WaitEvent(event);
}
void SDLOpenAudio(void);
void SDLCloseAudio(void);
-void SDLNextEvent(Event *);
+void SDLWaitEvent(Event *);
void SDLHandleWindowManagerEvent(Event *);
void HandleJoystickEvent(Event *);
return (SDL_PollEvent(NULL) ? TRUE : FALSE);
}
-void NextEvent(Event *event)
+void WaitEvent(Event *event)
{
- SDLNextEvent(event);
+ SDLWaitEvent(event);
}
void PeekEvent(Event *event)
void SetAudioMode(boolean);
boolean PendingEvent(void);
-void NextEvent(Event *event);
+void WaitEvent(Event *event);
void PeekEvent(Event *event);
void CheckQuitEvent(void);
Key GetEventKey(KeyEvent *, boolean);
{
Event event;
- NextEvent(&event);
+ WaitEvent(&event);
switch (event.type)
{
{
Event event;
- NextEvent(&event);
+ WaitEvent(&event);
switch (event.type)
{
{
Event event;
- NextEvent(&event);
+ WaitEvent(&event);
switch (event.type)
{