diff --git a/src/Core/Input/CursorUnlocker.cs b/src/Core/Input/CursorUnlocker.cs index 2613804..0a497fe 100644 --- a/src/Core/Input/CursorUnlocker.cs +++ b/src/Core/Input/CursorUnlocker.cs @@ -160,6 +160,16 @@ namespace UnityExplorer.Core.Input public static void Prefix_EventSystem_set_current(ref EventSystem value) { + if (!UIManager.EventSys) + { + if (value) + { + lastEventSystem = value; + lastInputModule = value.currentInputModule; + } + return; + } + if (!settingEventSystem && value != UIManager.EventSys) { lastEventSystem = value;