update doc/*/scripting/user-input.md

This commit is contained in:
MihailRis
2024-11-02 13:15:17 +03:00
parent 47c6c98b4a
commit 839211a310
5 changed files with 23 additions and 4 deletions
+3
View File
@@ -403,6 +403,9 @@ double Engine::getDelta() const {
}
void Engine::setScreen(std::shared_ptr<Screen> screen) {
// unblock all bindings
Events::enableBindings();
// reset audio channels (stop all sources)
audio::reset_channel(audio::get_channel_index("regular"));
audio::reset_channel(audio::get_channel_index("ambient"));
this->screen = std::move(screen);