aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rennie <renniej@ratix.(none)>2012-04-20 09:51:37 +0100
committerJohn Rennie <renniej@ratix.(none)>2012-04-20 09:51:37 +0100
commita35ad77acb51d8cf399184a8b2a8bf91effc5127 (patch)
treeaa93c897c494dc14b884ba709dd4b8c5eb53088d
parent5d968b0b29e1bdc8063930485879bd0ddbedf648 (diff)
Use SDL constants with the array returned by SDL_GetKeyState
-rw-r--r--xbmc/windowing/WinEventsSDL.cpp2
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;