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

Method SetAxisConfigByName

Source/Engine/Input/Input.cpp:726–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void Input::SetAxisConfigByName(const StringView& name, AxisConfig& config, bool all)
727{
728 PROFILE_MEM(Input);
729 for (int i = 0; i < AxisMappings.Count(); ++i)
730 {
731 auto& mapping = AxisMappings.At(i);
732 if (mapping.Name.Compare(name.ToString()) == 0)
733 {
734 if (config.Name.IsEmpty())
735 config.Name = name;
736 mapping = config;
737 if (!all)
738 break;
739 }
740 }
741}
742
743void Input::SetAxisConfigByName(const StringView& name, InputAxisType inputType, const KeyboardKeys positiveButton, const KeyboardKeys negativeButton, bool all)
744{

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