mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[TrackedControllerFix] Fixes for 2023r171
This commit is contained in:
parent
2d6c4a3fc5
commit
ffca0b8f3f
5 changed files with 90 additions and 50 deletions
|
@ -4,11 +4,11 @@ using Valve.VR;
|
|||
|
||||
namespace NAK.TrackedControllerFix.HarmonyPatches;
|
||||
|
||||
class PlayerSetupPatches
|
||||
internal class PlayerSetupPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.Start))]
|
||||
static void Post_PlayerSetup_Start(ref PlayerSetup __instance)
|
||||
private static void Postfix_PlayerSetup_Start(ref PlayerSetup __instance)
|
||||
{
|
||||
__instance.vrLeftHandTracker.AddComponent<TrackedControllerFixer>().inputSource = SteamVR_Input_Sources.LeftHand;
|
||||
__instance.vrRightHandTracker.AddComponent<TrackedControllerFixer>().inputSource = SteamVR_Input_Sources.RightHand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue