1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2026-10-10 04:53:15 +08:00

Fixed wrong argument names in some LegacyInput patched functions.

This commit is contained in:
originalnicodr
2024-02-21 00:13:30 -03:00
parent e2fec2d0d4
commit 2ca4191589
2 changed files with 6 additions and 6 deletions
+6 -6
View File
@@ -260,9 +260,9 @@ namespace UniverseLib.Input
// Postfix functions
public static void OverrideKeyString(ref bool __result, ref string key)
public static void OverrideKeyString(ref bool __result, ref string name)
{
KeyCode thisKeyCode = (KeyCode) System.Enum.Parse(typeof(KeyCode), key);
KeyCode thisKeyCode = (KeyCode) System.Enum.Parse(typeof(KeyCode), name);
getKeyDict[thisKeyCode] = __result;
if (FreeCamPanel.ShouldOverrideInput()){
__result = false;
@@ -279,9 +279,9 @@ namespace UniverseLib.Input
}
}
public static void OverrideKeyDownString(ref bool __result, ref string key)
public static void OverrideKeyDownString(ref bool __result, ref string name)
{
KeyCode thisKeyCode = (KeyCode) System.Enum.Parse(typeof(KeyCode), key);
KeyCode thisKeyCode = (KeyCode) System.Enum.Parse(typeof(KeyCode), name);
getKeyDownDict[thisKeyCode] = __result;
if (FreeCamPanel.ShouldOverrideInput()){
__result = false;
@@ -298,9 +298,9 @@ namespace UniverseLib.Input
}
}
public static void OverrideKeyUpString(ref bool __result, ref string key)
public static void OverrideKeyUpString(ref bool __result, ref string name)
{
KeyCode thisKeyCode = (KeyCode) System.Enum.Parse(typeof(KeyCode), key);
KeyCode thisKeyCode = (KeyCode) System.Enum.Parse(typeof(KeyCode), name);
getKeyUpDict[thisKeyCode] = __result;
if (FreeCamPanel.ShouldOverrideInput()){
__result = false;