use SDL_GetEvent
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user