mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-14 02:47:27 +08:00
[+] Fix DebugInput (MouseTouchPanel)
This commit is contained in:
@@ -3,6 +3,7 @@ using AMDaemon.Allnet;
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using Manager;
|
using Manager;
|
||||||
using Manager.Operation;
|
using Manager.Operation;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace AquaMai.Fix;
|
namespace AquaMai.Fix;
|
||||||
|
|
||||||
@@ -48,4 +49,36 @@ public class BasicFix
|
|||||||
__result = true;
|
__result = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(DebugInput), "GetKey")]
|
||||||
|
private static bool GetKey(ref bool __result, KeyCode name)
|
||||||
|
{
|
||||||
|
__result = UnityEngine.Input.GetKey(name);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(DebugInput), "GetKeyDown")]
|
||||||
|
private static bool GetKeyDown(ref bool __result, KeyCode name)
|
||||||
|
{
|
||||||
|
__result = UnityEngine.Input.GetKeyDown(name);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(DebugInput), "GetMouseButton")]
|
||||||
|
private static bool GetMouseButton(ref bool __result, int button)
|
||||||
|
{
|
||||||
|
__result = UnityEngine.Input.GetMouseButton(button);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(DebugInput), "GetMouseButtonDown")]
|
||||||
|
private static bool GetMouseButtonDown(ref bool __result, int button)
|
||||||
|
{
|
||||||
|
__result = UnityEngine.Input.GetMouseButtonDown(button);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user