mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-04 14:35:54 +00:00
Bullet freeze
This commit is contained in:
parent
57ff504628
commit
34a07342ac
31 changed files with 255 additions and 8 deletions
|
|
@ -35,6 +35,7 @@ public partial class KeyboardInputProvider : InputProvider
|
|||
[Export] private StringName _previousWeaponActionName = "previous_weapon";
|
||||
[Export] private StringName _inventoryActionName = "inventory";
|
||||
[Export] private StringName _pauseActionName = "pause";
|
||||
[Export] private StringName _freezeActionName = "Freeze";
|
||||
|
||||
private enum AimInputMethod { RightStick, Mouse }
|
||||
private AimInputMethod _lastUsedInput = AimInputMethod.RightStick;
|
||||
|
|
@ -163,5 +164,15 @@ public partial class KeyboardInputProvider : InputProvider
|
|||
{
|
||||
return GetActionJustPressed(_pauseActionName);
|
||||
}
|
||||
|
||||
public override bool GetFreezeJustPressed()
|
||||
{
|
||||
return GetActionJustPressed(_freezeActionName);
|
||||
}
|
||||
|
||||
public override bool GetFreezePressed()
|
||||
{
|
||||
return GetActionPressed(_freezeActionName);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue