Skip to content

Commit

Permalink
Fix numlock behaviour w/ SDL 2.0 on win32.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelva1984 committed Jul 9, 2013
1 parent bd8e92e commit 6c0c16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event_sdl.c
Expand Up @@ -343,7 +343,7 @@ static bool process_event(SDL_Event *event)

if(ckey == IKEY_NUMLOCK)
{
#ifdef __WIN32__
#if !SDL_VERSION_ATLEAST(2,0,0) && defined(__WIN32__)
status->numlock_status = true;
#endif
break;
Expand Down Expand Up @@ -405,7 +405,7 @@ static bool process_event(SDL_Event *event)

if(ckey == IKEY_NUMLOCK)
{
#ifdef __WIN32__
#if !SDL_VERSION_ATLEAST(2,0,0) && defined(__WIN32__)
status->numlock_status = false;
#else
status->numlock_status = !status->numlock_status;
Expand Down

0 comments on commit 6c0c16c

Please sign in to comment.