Change name to AxisValueChanged.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
public InputAxis()
|
||||
{
|
||||
Input.AxisChanged += Handler;
|
||||
Input.AxisValueChanged += Handler;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -44,7 +44,7 @@ namespace FlaxEngine
|
||||
/// <param name="name">The axis name.</param>
|
||||
public InputAxis(string name)
|
||||
{
|
||||
Input.AxisChanged += Handler;
|
||||
Input.AxisValueChanged += Handler;
|
||||
Name = name;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
~InputAxis()
|
||||
{
|
||||
Input.AxisChanged -= Handler;
|
||||
Input.AxisValueChanged -= Handler;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -67,7 +67,7 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
Input.AxisChanged -= Handler;
|
||||
Input.AxisValueChanged -= Handler;
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ Delegate<const Float2&, int32> Input::TouchDown;
|
||||
Delegate<const Float2&, int32> Input::TouchMove;
|
||||
Delegate<const Float2&, int32> Input::TouchUp;
|
||||
Delegate<StringView, const InputActionState&> Input::ActionTriggered;
|
||||
Delegate<StringView> Input::AxisChanged;
|
||||
Delegate<StringView> Input::AxisValueChanged;
|
||||
Array<ActionConfig> Input::ActionMappings;
|
||||
Array<AxisConfig> Input::AxisMappings;
|
||||
|
||||
@@ -1025,7 +1025,7 @@ void InputService::Update()
|
||||
{
|
||||
if (Math::NotNearEqual(i->Value.Value, i->Value.PrevKeyValue))
|
||||
{
|
||||
Input::AxisChanged(i->Key);
|
||||
Input::AxisValueChanged(i->Key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -299,7 +299,7 @@ public:
|
||||
/// 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;
|
||||
API_EVENT() static Delegate<StringView> AxisValueChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the value of the virtual action identified by name. Use <see cref="ActionMappings"/> to get the current config.
|
||||
|
||||
Reference in New Issue
Block a user