feat: Implement gamepad support and audio control enhancements in input and audio services

This commit is contained in:
2026-01-05 06:32:34 +00:00
parent e7737c60f9
commit 5548d3b3ce
10 changed files with 406 additions and 185 deletions

View File

@@ -72,4 +72,21 @@ bool AudioCommandService::QueueAudioCommand(AudioCommandType type,
return true;
}
bool AudioCommandService::StopBackground(std::string& error) {
if (logger_) {
logger_->Trace("AudioCommandService", "StopBackground");
}
if (!audioService_) {
error = "Audio service not available";
return false;
}
try {
audioService_->StopBackground();
} catch (const std::exception& ex) {
error = ex.what();
return false;
}
return true;
}
} // namespace sdl3cpp::services::impl