| 641 | } |
| 642 | |
| 643 | void Input::SetInputMappingFromSettings(const JsonAssetReference<InputSettings>& settings) |
| 644 | { |
| 645 | PROFILE_MEM(Input); |
| 646 | auto actionMappings = settings.GetInstance()->ActionMappings; |
| 647 | ActionMappings.Resize(actionMappings.Count(), false); |
| 648 | for (int i = 0; i < actionMappings.Count(); i++) |
| 649 | { |
| 650 | ActionMappings[i] = actionMappings.At(i); |
| 651 | } |
| 652 | |
| 653 | auto axisMappings = settings.GetInstance()->AxisMappings; |
| 654 | AxisMappings.Resize(axisMappings.Count(), false); |
| 655 | for (int i = 0; i < axisMappings.Count(); i++) |
| 656 | { |
| 657 | AxisMappings[i] = axisMappings.At(i); |
| 658 | } |
| 659 | Axes.Clear(); |
| 660 | Actions.Clear(); |
| 661 | } |
| 662 | |
| 663 | void Input::SetInputMappingToDefaultSettings() |
| 664 | { |
nothing calls this directly
no test coverage detected