This commit is contained in:
@@ -196,6 +196,13 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
|
||||
state.quitRequested = true;
|
||||
}
|
||||
|
||||
if (event->type == SDL_EVENT_AUDIO_DEVICE_ADDED ||
|
||||
event->type == SDL_EVENT_AUDIO_DEVICE_REMOVED) {
|
||||
// Route device hotplug to the audio manager so an active device that
|
||||
// disappears is failed over to the system default automatically.
|
||||
state.audio.handleDeviceEvent(*event);
|
||||
}
|
||||
|
||||
if (event->type == SDL_EVENT_WINDOW_RESIZED) {
|
||||
radiantwave::logger::Logger::instance().info(
|
||||
"Graphics", "Window resized to " +
|
||||
|
||||
Reference in New Issue
Block a user