lock cursor

This commit is contained in:
in0finite 2019-07-25 22:46:41 +02:00
parent b9ca2b2c7a
commit d74a809d95
2 changed files with 4 additions and 4 deletions

View file

@ -88,9 +88,9 @@ namespace SanAndreasUnity.UI {
// unlock and show cursor while pause menu is opened
if (Loader.HasLoaded) {
// bool shouldBeLocked = !IsOpened;
// if (GameManager.CursorLocked != shouldBeLocked)
// GameManager.ChangeCursorState (shouldBeLocked);
bool shouldBeLocked = !IsOpened;
if (GameManager.CursorLocked != shouldBeLocked)
GameManager.ChangeCursorState (shouldBeLocked);
}
}

View file

@ -27,7 +27,7 @@
- Chat
- Android: add perms for read/write access to storage ; forbid screen rotation ; assign app version ;
- Android:
- Touch input: lock cursor when testing finishes ;