Browse Source

sdl: tiny fix for SDLv1 keyboard input.

undefined
Sam Hocevar 9 years ago
parent
commit
7257bcc1e8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/platform/sdl/sdlinput.cpp

+ 2
- 1
src/platform/sdl/sdlinput.cpp View File

@@ -298,7 +298,8 @@ void SdlInputData::Tick(float seconds)
# endif
default:
# if USE_OLD_SDL
m_keyboard->SetKey(sc, event.type == SDL_KEYDOWN);
m_keyboard->SetKey(sc ? sc : event.key.keysym.scancode,
event.type == SDL_KEYDOWN);
# else
if (ScanCodeIsValid(sc))
{


Loading…
Cancel
Save