diff --git a/TwoForksVR/Input/Patches/BindingsPatches.cs b/TwoForksVR/Input/Patches/BindingsPatches.cs index 17890340..8636a71b 100644 --- a/TwoForksVR/Input/Patches/BindingsPatches.cs +++ b/TwoForksVR/Input/Patches/BindingsPatches.cs @@ -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; + } } } \ No newline at end of file