summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eventsmanager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 143937fe1..f7ac7161e 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -287,11 +287,15 @@ void EventsManager::logEvent(const SDL_Event &event)
break;
}
case SDL_KEYDOWN:
- logger->log("event: SDL_KEYDOWN: %d,%d", event.key.state,
+ logger->log("event: SDL_KEYDOWN: %s(%d),%d",
+ SDL_GetScancodeName(event.key.keysym.scancode),
+ event.key.state,
event.key.keysym.scancode);
break;
case SDL_KEYUP:
- logger->log("event: SDL_KEYUP: %d,%d", event.key.state,
+ logger->log("event: SDL_KEYUP: %s(%d),%d",
+ SDL_GetScancodeName(event.key.keysym.scancode),
+ event.key.state,
event.key.keysym.scancode);
break;
case SDL_WINDOWEVENT: