mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
6caa4dbf59
commit
cce98d6b9b
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue