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);