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

Function DefaultConflict

TombEngine/Specific/Input/Input.cpp:258–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 void DefaultConflict()
259 {
260 for (const auto& actionIDGroup : ACTION_ID_GROUPS)
261 {
262 for (auto actionID : actionIDGroup)
263 {
264 g_Bindings.SetConflict(actionID, false);
265
266 int key = g_Bindings.GetBoundKeyID(BindingProfileID::Default, actionID);
267 for (auto conflictActionID : actionIDGroup)
268 {
269 if (key != g_Bindings.GetBoundKeyID(BindingProfileID::Custom, conflictActionID))
270 continue;
271
272 g_Bindings.SetConflict(actionID, true);
273 break;
274 }
275 }
276 }
277 }
278
279 static void SetDiscreteAxisValues(unsigned int keyID)
280 {

Callers 3

LoadConfigurationFunction · 0.85
UpdateInputActionsFunction · 0.85

Calls 2

SetConflictMethod · 0.80
GetBoundKeyIDMethod · 0.80

Tested by

no test coverage detected