Add back depriciated Triggered event.

This commit is contained in:
Chandler Cox
2023-09-26 09:40:30 -05:00
parent eeab9774a9
commit ed2dd7211a

View File

@@ -25,6 +25,12 @@ namespace FlaxEngine
/// </summary>
public InputActionState State => Input.GetActionState(Name);
/// <summary>
/// Occurs when event is triggered (e.g. user pressed a key). Called before scripts update.
/// </summary>
[System.Obsolete("Depreciated in 1.7, use Pressed.")]
public event Action Triggered;
/// <summary>
/// Occurs when event is pressed (e.g. user pressed a key). Called before scripts update.
/// </summary>
@@ -75,6 +81,7 @@ namespace FlaxEngine
case InputActionState.None: break;
case InputActionState.Waiting: break;
case InputActionState.Pressing:
Triggered?.Invoke();
Pressing?.Invoke();
break;
case InputActionState.Press: