forked from speed-dreams/speed-dreams-code
Fix for building with SDL 1
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7259 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: f9ce574dea11e30b0215a28489cc44ef27224ab6 Former-commit-id: 36289cc6380140fccd455f9de2f67669f932cdd8
This commit is contained in:
parent
73fa6d9419
commit
4650337c55
1 changed files with 4 additions and 0 deletions
|
@ -204,7 +204,11 @@ void GfEventLoop::injectKeyboardEvent(int code, int modifier, int state,
|
|||
GfLogDebug("injectKeyboardEvent(c=%X) : lockedMod=%X (SDL says %X)\n",
|
||||
code, _pPrivate->nLockedModifiers, SDL_GetModState());
|
||||
return;
|
||||
#if SDL_MAJOR_VERSION < 2
|
||||
case SDLK_NUMLOCK:
|
||||
#else
|
||||
case SDLK_NUMLOCKCLEAR:
|
||||
#endif
|
||||
_pPrivate->nLockedModifiers ^= KMOD_NUM;
|
||||
GfLogDebug("injectKeyboardEvent(c=%X) : lockedMod=%X (SDL says %X)\n",
|
||||
code, _pPrivate->nLockedModifiers, SDL_GetModState());
|
||||
|
|
Loading…
Reference in a new issue