Add keybind for mouse unlock, and aggressive unlock mode

This commit is contained in:
Sinai
2021-04-16 18:24:31 +10:00
parent 0f69833283
commit 9bdcccaaa1
7 changed files with 62 additions and 6 deletions

View File

@ -83,6 +83,9 @@ namespace UnityExplorer.UI
if (!ShowMenu)
return;
if (InputManager.GetKeyDown(ConfigManager.Force_Unlock_Keybind.Value))
CursorUnlocker.Unlock = !CursorUnlocker.Unlock;
UIBehaviourModel.UpdateInstances();
if (EventSystem.current != EventSys)