From 310457f12b1fdc1c704f5d980c77feeb8ff9698f Mon Sep 17 00:00:00 2001 From: Rowan Ramsey Date: Fri, 29 Sep 2023 02:18:01 +0200 Subject: [PATCH] updating the function names --- src/application/input/inputsystem.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/application/input/inputsystem.hpp b/src/application/input/inputsystem.hpp index 23ee71d..06d7c6c 100644 --- a/src/application/input/inputsystem.hpp +++ b/src/application/input/inputsystem.hpp @@ -241,7 +241,7 @@ namespace rythe::application //creates a tuple with default value 0 auto& data = m_actions[m][rsl::typeHash()]; - data.callback = action_callback::from( + data.callback = action_callback::create( [](InputSystem* self, bool state, inputmap::modifier_keys mods, inputmap::method method, float def, float delta) { (void)def; @@ -261,7 +261,7 @@ namespace rythe::application { auto& data = m_actions[m][rsl::typeHash()]; - data.callback = action_callback::from( + data.callback = action_callback::create( [](InputSystem* self, bool state, inputmap::modifier_keys mods, inputmap::method method, float def, float delta) { self->pushCommand(state ? def : 0.0f,mods,method); @@ -280,7 +280,7 @@ namespace rythe::application auto& data = m_axes[m][rsl::typeHash()]; - data.callback = axis_callback::from( + data.callback = axis_callback::create( [](InputSystem* self, float value, inputmap::modifier_keys mods, inputmap::method method, float delta) { Event e; @@ -301,7 +301,7 @@ namespace rythe::application auto& data = m_axes[m][rsl::typeHash()]; - data.callback = axis_callback::from( + data.callback = axis_callback::create( [](InputSystem* self, float value, inputmap::modifier_keys mods, inputmap::method method, float delta) { self->pushCommand(value,mods,method);