diff --git a/Source/Engine/Engine/InputEvent.cs b/Source/Engine/Engine/InputEvent.cs index c6c46c43d..b8b3dbfa9 100644 --- a/Source/Engine/Engine/InputEvent.cs +++ b/Source/Engine/Engine/InputEvent.cs @@ -16,10 +16,15 @@ namespace FlaxEngine public string Name; /// - /// Returns true if the event has been triggered during the current frame (e.g. user pressed a key). Use , , to catch events without active waiting. + /// Returns true if the event has been triggered during the current frame (e.g. user pressed a key). Use to catch events without active waiting. /// public bool Active => Input.GetAction(Name); + /// + /// Returns the event state. Use Use , , to catch events without active waiting. + /// + public InputActionState State => Input.GetActionState(Name); + /// /// Occurs when event is pressed (e.g. user pressed a key). Called before scripts update. ///