diff --git a/Source/Engine/Engine/InputAxis.cs b/Source/Engine/Engine/InputAxis.cs index 7b4da3191..c70bada74 100644 --- a/Source/Engine/Engine/InputAxis.cs +++ b/Source/Engine/Engine/InputAxis.cs @@ -35,7 +35,7 @@ namespace FlaxEngine /// public InputAxis() { - Input.AxisChanged += Handler; + Input.AxisValueChanged += Handler; } /// @@ -44,7 +44,7 @@ namespace FlaxEngine /// The axis name. public InputAxis(string name) { - Input.AxisChanged += Handler; + Input.AxisValueChanged += Handler; Name = name; } @@ -59,7 +59,7 @@ namespace FlaxEngine /// ~InputAxis() { - Input.AxisChanged -= Handler; + Input.AxisValueChanged -= Handler; } /// @@ -67,7 +67,7 @@ namespace FlaxEngine /// public void Dispose() { - Input.AxisChanged -= Handler; + Input.AxisValueChanged -= Handler; GC.SuppressFinalize(this); } } diff --git a/Source/Engine/Input/Input.cpp b/Source/Engine/Input/Input.cpp index 2a098088e..d3c09c130 100644 --- a/Source/Engine/Input/Input.cpp +++ b/Source/Engine/Input/Input.cpp @@ -98,7 +98,7 @@ Delegate Input::TouchDown; Delegate Input::TouchMove; Delegate Input::TouchUp; Delegate Input::ActionTriggered; -Delegate Input::AxisChanged; +Delegate Input::AxisValueChanged; Array Input::ActionMappings; Array 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); } } diff --git a/Source/Engine/Input/Input.h b/Source/Engine/Input/Input.h index ed66a6cd9..eb1299334 100644 --- a/Source/Engine/Input/Input.h +++ b/Source/Engine/Input/Input.h @@ -299,7 +299,7 @@ public: /// Event fired when virtual input axis is changed. Called before scripts update. See to edit configuration. /// /// - API_EVENT() static Delegate AxisChanged; + API_EVENT() static Delegate AxisValueChanged; /// /// Gets the value of the virtual action identified by name. Use to get the current config.