diff options
author | John Rennie <renniej@ratix.(none)> | 2012-04-20 09:51:37 +0100 |
---|---|---|
committer | John Rennie <renniej@ratix.(none)> | 2012-04-20 09:51:37 +0100 |
commit | a35ad77acb51d8cf399184a8b2a8bf91effc5127 (patch) | |
tree | aa93c897c494dc14b884ba709dd4b8c5eb53088d | |
parent | 5d968b0b29e1bdc8063930485879bd0ddbedf648 (diff) |
Use SDL constants with the array returned by SDL_GetKeyState
-rw-r--r-- | xbmc/windowing/WinEventsSDL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/windowing/WinEventsSDL.cpp b/xbmc/windowing/WinEventsSDL.cpp index ca42d266b4..92a2f11ed0 100644 --- a/xbmc/windowing/WinEventsSDL.cpp +++ b/xbmc/windowing/WinEventsSDL.cpp @@ -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; |