Add AxisChanged event to InputAxis.

This commit is contained in:
Chandler Cox
2023-09-26 10:03:34 -05:00
parent 3a9dd3f8f8
commit 071a73c6d9
3 changed files with 47 additions and 0 deletions

View File

@@ -295,6 +295,12 @@ public:
/// <seealso cref="InputEvent"/>
API_EVENT() static Delegate<StringView, const InputActionState&> ActionTriggered;
/// <summary>
/// Event fired when virtual input axis is changed. Called before scripts update. See <see cref="AxisMappings"/> to edit configuration.
/// </summary>
/// <seealso cref="InputAxis"/>
API_EVENT() static Delegate<StringView> AxisChanged;
/// <summary>
/// Gets the value of the virtual action identified by name. Use <see cref="ActionMappings"/> to get the current config.
/// </summary>