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

Function TestBoundKey

TombEngine/Specific/Input/Input.cpp:224–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 static bool TestBoundKey(int keyID)
225 {
226 for (int i = 1; i >= 0; i--)
227 {
228 auto profileID = (BindingProfileID)i;
229 for (int j = 0; j < (int)ActionID::Count; j++)
230 {
231 auto actionID = (ActionID)j;
232 if (g_Bindings.GetBoundKeyID(profileID, actionID) == keyID)
233 return true;
234 }
235 }
236
237 return false;
238 }
239
240 // Merge right and left Ctrl, Shift, and Alt keys.
241 static int WrapSimilarKeys(int source)

Callers 1

ReadGamepadFunction · 0.85

Calls 1

GetBoundKeyIDMethod · 0.80

Tested by

no test coverage detected