| 724 | } |
| 725 | |
| 726 | void 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 | |
| 743 | void Input::SetAxisConfigByName(const StringView& name, InputAxisType inputType, const KeyboardKeys positiveButton, const KeyboardKeys negativeButton, bool all) |
| 744 | { |