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:
beaglejoe 2021-01-17 14:44:23 +00:00
parent 73fa6d9419
commit 4650337c55

View file

@ -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());