come out of lock in ShowCursor
This commit is contained in:
parent
1ae7a89a42
commit
31229add28
1 changed files with 5 additions and 0 deletions
|
@ -839,6 +839,11 @@ void ShowCursor(void)
|
|||
{
|
||||
if (CORE.Input.Mouse.cursorHidden)
|
||||
{
|
||||
if(lockedMouseCursor)
|
||||
{
|
||||
emscripten_exit_pointerlock();
|
||||
}
|
||||
|
||||
EM_ASM( { Module.canvas.style.cursor = UTF8ToString($0); }, cursorLUT[CORE.Input.Mouse.cursor]);
|
||||
|
||||
CORE.Input.Mouse.cursorHidden = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue