MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Key

Function Key

TombEngine/Specific/Input/Input.cpp:546–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

UpdateInputActionsFunction · 0.70

Calls 2

TestConflictMethod · 0.80
GetBoundKeyIDMethod · 0.80

Tested by

no test coverage detected