in_sdl.c: make key debug logging more verbose

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1111 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2014-10-14 04:03:16 +00:00
parent 6caa4dbf59
commit cce98d6b9b

View file

@ -632,9 +632,15 @@ void IN_SendKeyEvents (void)
#if defined(DEBUG_INPUT)
#if defined(USE_SDL2)
printf ("%s '%s'\n", down ? "SDL_KEYDOWN" : "SDL_KEYUP", SDL_GetScancodeName(event.key.keysym.scancode));
printf ("%s scancode: '%s' keycode: '%s'\n",
down ? "SDL_KEYDOWN" : "SDL_KEYUP",
SDL_GetScancodeName(event.key.keysym.scancode),
SDL_GetKeyName(event.key.keysym.sym));
#else
printf ("%s '%s'\n", down ? "SDL_KEYDOWN" : "SDL_KEYUP", SDL_GetKeyName(event.key.keysym.sym));
printf ("%s sym: '%s' unicode: %04x\n",
down ? "SDL_KEYDOWN" : "SDL_KEYUP",
SDL_GetKeyName(event.key.keysym.sym),
(int)event.key.keysym.unicode);
#endif
#endif