summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eventsmanager.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index fec747ccc..28b50ba2b 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -426,7 +426,14 @@ void EventsManager::logEvent(const SDL_Event &event)
event.button.x,
event.button.y);
break;
-
+ case SDL_JOYDEVICEADDED:
+ logger->log("event: SDL_JOYDEVICEADDED: %d",
+ event.jdevice.which);
+ break;
+ case SDL_JOYDEVICEREMOVED:
+ logger->log("event: SDL_JOYDEVICEREMOVED: %d",
+ event.jdevice.which);
+ break;
#else // USE_SDL2
case SDL_MOUSEMOTION: