| 945 | for (int i = 0; i < UAN; i++) |
| 946 | { |
| 947 | input.SetUserKeys(static_cast<UserAction>(i), _keys->GetKeys(i)); |
| 948 | input.CompactUserKeys(static_cast<UserAction>(i)); |
| 949 | } |
| 950 | input.SaveKeys(); |
| 951 | } |
| 952 | |
| 953 | void DisplayConfigure::OnSimulate(EntityAI* vehicle) |
| 954 | { |
| 955 | Display::OnSimulate(vehicle); |
| 956 | |
| 957 | if (!_keys->IsFocused()) |
| 958 | { |
| 959 | return; |
| 960 | } |
| 961 | |
| 962 | if (_keys->GetMode() < 0) |
| 963 | { |
| 964 | return; |
| 965 | } |
| 966 | |
| 967 | int index = _keys->GetCurSel(); |
| 968 | if (index < 0) |
| 969 | { |
| 970 | return; |
nothing calls this directly
no test coverage detected