fix: migrate input handling to new Unity InputSystem

💘 Generated with Crush

Assisted-by: Gemini 3.1 Pro (Optimized for Coding Agents) via Crush <crush@charm.land>
This commit is contained in:
Marvin
2026-04-20 06:35:27 +02:00
parent 1fd8938f2b
commit 658bf080a1
3 changed files with 6 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -25,7 +25,7 @@ public sealed class GregCoreLoader : MelonMod
public override void OnUpdate()
{
if (global::UnityEngine.Input.GetKeyDown(global::UnityEngine.KeyCode.P))
if (global::UnityEngine.InputSystem.Keyboard.current != null && global::UnityEngine.InputSystem.Keyboard.current.pKey.wasPressedThisFrame)
{
global::gregCore.Infrastructure.UI.GregDevConsole.Instance.Toggle();
}
+5
View File
@@ -72,6 +72,11 @@
<HintPath Condition="'$(CI)' == 'true'">$(RepoRoot)\ci-stubs\UnityEngine.InputLegacyModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Unity.InputSystem">
<HintPath Condition="'$(CI)' != 'true'">$(MELON_BASE_DIR)\Il2CppAssemblies\Unity.InputSystem.dll</HintPath>
<HintPath Condition="'$(CI)' == 'true'">$(RepoRoot)\ci-stubs\Unity.InputSystem.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>