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

@ -12,6 +12,7 @@ using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityExplorer.Core;
using UnityExplorer.Core.CSharp;
using UnityExplorer.Core.Input;
namespace UnityExplorer.Core.Runtime.Mono
{
@ -26,6 +27,11 @@ namespace UnityExplorer.Core.Runtime.Mono
DummyBehaviour.Setup();
}
public override void SetupCameraDelegate()
{
Camera.onPostRender += CursorUnlocker.OnCameraPostRender;
}
public override void SetupEvents()
{
Application.logMessageReceived += Application_logMessageReceived;