Skip to content

Commit

Permalink
Force xbox icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Nov 1, 2021
1 parent bca9ebd commit 696718d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TwoForksVR/Input/Patches/BindingsPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,14 @@ private static bool GetActionsFileFromMod(ref string __result)
__result = $"{Directory.GetCurrentDirectory()}/BepInEx/plugins/TwoForksVR/Bindings";
return false;
}

[HarmonyPostfix]
[HarmonyPatch(typeof(vgInputManager), nameof(vgInputManager.Awake))]
[HarmonyPatch(typeof(vgInputManager), nameof(vgInputManager.SetControllerLayout))]
[HarmonyPatch(typeof(vgInputManager), nameof(vgInputManager.SetKeyBindFromPlayerPrefs))]
private static void ForceXboxController(vgInputManager __instance)
{
__instance.currentControllerLayout = vgControllerLayoutChoice.XBox;
}
}
}

0 comments on commit 696718d

Please sign in to comment.