MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / clearKeys

Function clearKeys

TheForceEngine/TFE_Input/inputMapping.cpp:578–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576 }
577
578 void clearKeys()
579 {
580 for (int i = 0; i < currentKeys.size(); i++)
581 {
582 KeyboardCode key = (KeyboardCode)currentKeys[i];
583 TFE_Input::setKeyUp(key);
584 }
585 currentKeys.clear();
586 for (int i = 0; i < currentKeyPresses.size(); i++)
587 {
588 KeyboardCode key = (KeyboardCode)currentKeyPresses[i];
589 TFE_Input::clearKeyPressed(key);
590 }
591 currentKeyPresses.clear();
592 }
593
594 bool isBindingPressed(InputAction action)
595 {

Callers 1

Calls 4

setKeyUpFunction · 0.85
clearKeyPressedFunction · 0.85
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected