use SDL_GetEvent

This commit is contained in:
Glenn Maynard
2003-04-12 19:03:02 +00:00
parent 3046f71c66
commit eb1e2a0435
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ static void HandleSDLEvents()
{ {
// process all queued events // process all queued events
SDL_Event event; SDL_Event event;
while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_QUITMASK|SDL_ACTIVEEVENTMASK)) while(SDL_GetEvent(event, SDL_QUITMASK|SDL_ACTIVEEVENTMASK))
{ {
switch(event.type) switch(event.type)
{ {
@@ -82,7 +82,7 @@ InputHandler_SDL::~InputHandler_SDL()
void InputHandler_SDL::Update(float fDeltaTime) void InputHandler_SDL::Update(float fDeltaTime)
{ {
SDL_Event event; SDL_Event event;
while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_EventMask)) while(SDL_GetEvent(event, SDL_EventMask))
{ {
switch(event.type) switch(event.type)
{ {
@@ -83,7 +83,7 @@ bool LowLevelWindow_SDL::SetVideoMode( bool windowed, int width, int height, int
* in the real branch we can remove this #if. */ * in the real branch we can remove this #if. */
#if defined(WIN32) #if defined(WIN32)
SDL_Event e; SDL_Event e;
if(SDL_PeepEvents(&e, 1, SDL_GETEVENT, SDL_OPENGLRESETMASK)) if(SDL_GetEvent(&e, SDL_OPENGLRESETMASK))
{ {
LOG->Trace("New OpenGL context"); LOG->Trace("New OpenGL context");
@@ -125,7 +125,7 @@ void LowLevelWindow_SDL::SwapBuffers()
void LowLevelWindow_SDL::Update(float fDeltaTime) void LowLevelWindow_SDL::Update(float fDeltaTime)
{ {
SDL_Event event; SDL_Event event;
while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_VIDEORESIZEMASK)) while(SDL_GetEvent(event, SDL_VIDEORESIZEMASK))
{ {
switch(event.type) switch(event.type)
{ {