Skip to content

Commit

Permalink
Fix SDL error
Browse files Browse the repository at this point in the history
  • Loading branch information
augustg committed Mar 29, 2011
1 parent c5c1b03 commit 439f597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/arch/InputHandler/InputHandler_SDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static const Sint8 Handled_SDL_Events[] = {
SDL_KEYDOWN, SDL_KEYUP, SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP,
SDL_JOYAXISMOTION, SDL_JOYHATMOTION, -1
};
static int SDL_EventMask;
static int SDL_EventMask2;

InputHandler_SDL::InputHandler_SDL()
{
Expand Down Expand Up @@ -173,7 +173,7 @@ InputHandler_SDL::InputHandler_SDL()
for(i = 0; Handled_SDL_Events[i] != -1; ++i)
{
mySDL_EventState(Handled_SDL_Events[i], SDL_ENABLE);
SDL_EventMask |= SDL_EVENTMASK(Handled_SDL_Events[i]);
SDL_EventMask2 |= SDL_EVENTMASK(Handled_SDL_Events[i]);
}
}

Expand All @@ -192,7 +192,7 @@ InputHandler_SDL::~InputHandler_SDL()
void InputHandler_SDL::Update(float fDeltaTime)
{
SDL_Event event;
while(SDL_GetEvent(event, SDL_EventMask))
while(SDL_GetEvent(event, SDL_EventMask2))
{
switch(event.type)
{
Expand Down

0 comments on commit 439f597

Please sign in to comment.