mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
f
This commit is contained in:
parent
a55f1fb739
commit
7403b6c3e7
2 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,8 @@ internal class PlayerSetupPatches
|
|||
vrRightHandTracker = __instance.vrRightHandTracker.AddComponent<SteamVR_TrackedObject>();
|
||||
vrLeftHandPose = __instance.vrLeftHandTracker.GetComponent<SteamVR_Behaviour_Pose>();
|
||||
vrRightHandPose = __instance.vrRightHandTracker.GetComponent<SteamVR_Behaviour_Pose>();
|
||||
vrLeftHandPose.enabled = false;
|
||||
vrRightHandPose.enabled = false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
|
@ -32,11 +34,13 @@ internal class PlayerSetupPatches
|
|||
// but this is the best way to support DesktopVRSwitch & not redo the controller inputs
|
||||
if (vrLeftHandTracker != null)
|
||||
{
|
||||
vrLeftHandPose.enabled = true;
|
||||
vrLeftHandTracker.SetDeviceIndex(vrLeftHandPose.GetDeviceIndex());
|
||||
vrLeftHandPose.enabled = false;
|
||||
}
|
||||
if (vrRightHandTracker != null)
|
||||
{
|
||||
vrRightHandPose.enabled = true;
|
||||
vrRightHandTracker.SetDeviceIndex(vrRightHandPose.GetDeviceIndex());
|
||||
vrRightHandPose.enabled = false;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,6 @@ using System.Reflection;
|
|||
namespace NAK.Melons.TrackedControllerFix.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.0";
|
||||
public const string Version = "1.0.1";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue