mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/user-input.md
This commit is contained in:
parent
47c6c98b4a
commit
839211a310
5 changed files with 23 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue