added hot-plug support for game controllers and joysticks
[rocksndiamonds.git] / src / events.c
index fc34d8981bc8dbc41583dd751573be706c60a330..87011a9732167f4aafd2c45b73f4d1e61b6e9a96 100644 (file)
@@ -248,6 +248,8 @@ void HandleOtherEvents(Event *event)
 
 #if defined(TARGET_SDL)
 #if defined(TARGET_SDL2)
+    case SDL_CONTROLLERDEVICEADDED:
+    case SDL_CONTROLLERDEVICEREMOVED:
     case SDL_CONTROLLERAXISMOTION:
     case SDL_CONTROLLERBUTTONDOWN:
     case SDL_CONTROLLERBUTTONUP: