MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetActionConfigByName

Method SetActionConfigByName

Source/Engine/Input/Input.cpp:794–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794void Input::SetActionConfigByName(const StringView& name, const KeyboardKeys key, bool all)
795{
796 PROFILE_MEM(Input);
797 for (int i = 0; i < ActionMappings.Count(); ++i)
798 {
799 auto& mapping = ActionMappings.At(i);
800 if (mapping.Name.Compare(name.ToString()) == 0)
801 {
802 mapping.Key = key;
803 if (!all)
804 break;
805 }
806 }
807}
808
809void Input::SetActionConfigByName(const StringView& name, const MouseButton mouseButton, bool all)
810{

Callers

nothing calls this directly

Calls 4

CountMethod · 0.45
CompareMethod · 0.45
ToStringMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected