Handle mouse center/visible when editor play/pause/stop
This commit is contained in:
parent
f4f544ff53
commit
9866c6e307
|
@ -619,7 +619,6 @@ namespace SHADE
|
|||
}
|
||||
else if (editorState == State::PAUSE)
|
||||
{
|
||||
|
||||
SHWindow::SetMouseVisible(prevCursorVisibleState);
|
||||
editorState = State::PLAY;
|
||||
}
|
||||
|
@ -636,6 +635,7 @@ namespace SHADE
|
|||
editorState = State::PAUSE;
|
||||
SHInputManager::SetMouseCentering(false);
|
||||
prevCursorVisibleState = SHWindow::GetMouseVisible();
|
||||
SHWindow::SetMouseVisible(true);
|
||||
SHEventManager::BroadcastEvent<SHEditorStateChangeEvent>(STATE_CHANGE_EVENT, SH_EDITOR_ON_PAUSE_EVENT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue