mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
well
This commit is contained in:
parent
81affe9377
commit
845baee849
4 changed files with 45 additions and 26 deletions
|
@ -4,7 +4,12 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using ABI_RC.Core.InteractionSystem;
|
||||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Core;
|
||||
using ABI_RC.Systems.MovementSystem;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace NAK.Melons.MenuScalePatch.Helpers;
|
||||
|
||||
|
@ -23,4 +28,15 @@ public class MSP_MenuInfo
|
|||
public static bool DisableQMHelper_VR;
|
||||
public static bool DisableMMHelper;
|
||||
public static bool DisableMMHelper_VR;
|
||||
|
||||
public static void ToggleDesktopInputMethod(bool flag)
|
||||
{
|
||||
if (MetaPort.Instance.isUsingVr) return;
|
||||
MelonLoader.MelonLogger.Msg("Toggled Desktop Input");
|
||||
PlayerSetup.Instance._movementSystem.disableCameraControl = flag;
|
||||
CVRInputManager.Instance.inputEnabled = !flag;
|
||||
RootLogic.Instance.ToggleMouse(flag);
|
||||
CVR_MenuManager.Instance.desktopControllerRay.enabled = !flag;
|
||||
Traverse.Create(CVR_MenuManager.Instance).Field("_desktopMouseMode").SetValue(flag);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue