Skip to content

Commit

Permalink
Use SDL constants with the array returned by SDL_GetKeyState
Browse files Browse the repository at this point in the history
  • Loading branch information
John Rennie committed Apr 20, 2012
1 parent 5d968b0 commit a35ad77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/windowing/WinEventsSDL.cpp
Expand Up @@ -272,7 +272,7 @@ bool CWinEventsSDL::MessagePump()
// Check if the Windows keys are down because SDL doesn't flag this.
uint16_t mod = event.key.keysym.mod;
uint8_t* keystate = SDL_GetKeyState(NULL);
if (keystate[XBMCK_LSUPER] || keystate[XBMCK_RSUPER])
if (keystate[SDLK_LSUPER] || keystate[SDLK_RSUPER])
mod |= XBMCKMOD_LSUPER;
newEvent.key.keysym.mod = (XBMCMod) mod;

Expand Down

0 comments on commit a35ad77

Please sign in to comment.