Added some debug messaging for previously unhandled events
parent
2d10a3f2b9
commit
94e0f3e95b
|
@ -1093,10 +1093,17 @@ SDLTest_PrintEvent(SDL_Event * event)
|
||||||
SDL_GetScancodeName(event->key.keysym.scancode),
|
SDL_GetScancodeName(event->key.keysym.scancode),
|
||||||
event->key.keysym.sym, SDL_GetKeyName(event->key.keysym.sym));
|
event->key.keysym.sym, SDL_GetKeyName(event->key.keysym.sym));
|
||||||
break;
|
break;
|
||||||
|
case SDL_TEXTEDITING:
|
||||||
|
SDL_Log("SDL EVENT: Keyboard: text editing \"%s\" in window %d",
|
||||||
|
event->edit.text, event->edit.windowID);
|
||||||
|
break;
|
||||||
case SDL_TEXTINPUT:
|
case SDL_TEXTINPUT:
|
||||||
SDL_Log("SDL EVENT: Keyboard: text input \"%s\" in window %d",
|
SDL_Log("SDL EVENT: Keyboard: text input \"%s\" in window %d",
|
||||||
event->text.text, event->text.windowID);
|
event->text.text, event->text.windowID);
|
||||||
break;
|
break;
|
||||||
|
case SDL_KEYMAPCHANGED:
|
||||||
|
SDL_Log("SDL EVENT: Keymap changed");
|
||||||
|
break;
|
||||||
case SDL_MOUSEMOTION:
|
case SDL_MOUSEMOTION:
|
||||||
SDL_Log("SDL EVENT: Mouse: moved to %d,%d (%d,%d) in window %d",
|
SDL_Log("SDL EVENT: Mouse: moved to %d,%d (%d,%d) in window %d",
|
||||||
event->motion.x, event->motion.y,
|
event->motion.x, event->motion.y,
|
||||||
|
|
Loading…
Reference in New Issue