| 544 | } |
| 545 | |
| 546 | static float Key(ActionID actionID) |
| 547 | { |
| 548 | int keyID = OIS::KC_UNASSIGNED; |
| 549 | for (int i = (int)BindingProfileID::Count - 1; i >= 0; i--) |
| 550 | { |
| 551 | auto profileID = (BindingProfileID)i; |
| 552 | if (profileID == BindingProfileID::Default && g_Bindings.TestConflict(actionID)) |
| 553 | continue; |
| 554 | |
| 555 | int newKeyID = g_Bindings.GetBoundKeyID(profileID, actionID); |
| 556 | if (KeyMap[newKeyID] != 0.0f) |
| 557 | { |
| 558 | keyID = newKeyID; |
| 559 | break; |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | return KeyMap[keyID]; |
| 564 | } |
| 565 | |
| 566 | void SolveActionCollisions() |
| 567 | { |
no test coverage detected