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:
Binary file not shown.
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user