use SDL_GetEvent
This commit is contained in:
@@ -82,7 +82,7 @@ InputHandler_SDL::~InputHandler_SDL()
|
||||
void InputHandler_SDL::Update(float fDeltaTime)
|
||||
{
|
||||
SDL_Event event;
|
||||
while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_EventMask))
|
||||
while(SDL_GetEvent(event, SDL_EventMask))
|
||||
{
|
||||
switch(event.type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user