fit : scarecrow & boat integration

This commit is contained in:
Ferlat Thibaud
2026-06-02 15:28:13 +02:00
parent 155bb2a96a
commit b19c218962
24 changed files with 852 additions and 3993 deletions
@@ -115,8 +115,6 @@ namespace Unheimlich.Navigation.Debuging
_keyboardNextAction.performed += _ => TryNext();
// Device detection — wildcard bindings
// Note: on exclut les triggers du anyGamepad pour éviter les faux positifs
// lors du relâchement après un hold unlock
_anyGamepadAction = new InputAction("AnyGamepad", InputActionType.PassThrough);
_anyGamepadAction.AddBinding("<Gamepad>/leftStick");
_anyGamepadAction.AddBinding("<Gamepad>/rightStick");
@@ -230,7 +228,7 @@ namespace Unheimlich.Navigation.Debuging
if (_holdTimer >= _holdDuration)
{
_holdFired = true; // marque comme fired AVANT le toggle pour bloquer OnR2Up/OnL2Up
_holdFired = true;
ToggleDebugMenu(true);
}
}
@@ -285,12 +283,12 @@ namespace Unheimlich.Navigation.Debuging
SyncDebugNavigation();
if (isGamepad) OnDebugMenuUnlockedGamepad?.Invoke();
else OnDebugMenuUnlockedKeyboard?.Invoke();
UnityEngine.Debug.Log($"[DebugMenuUnlocker] Unlocked ({(isGamepad ? "Gamepad" : "Keyboard")}).");
Debug.Log($"[DebugMenuUnlocker] Unlocked ({(isGamepad ? "Gamepad" : "Keyboard")}).");
}
else
{
OnDebugMenuLocked?.Invoke();
UnityEngine.Debug.Log("[DebugMenuUnlocker] Locked.");
Debug.Log("[DebugMenuUnlocker] Locked.");
}
}