MCPcopy Create free account
hub / github.com/DavidColson/Polybox / ClearStates

Function ClearStates

source/input.cpp:690–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688// ***********************************************************************
689
690void ClearStates() {
691 for (int i = 0; i < (int)Key::Count; i++)
692 pInputState->keyDowns[i] = false;
693 for (int i = 0; i < (int)Key::Count; i++)
694 pInputState->keyUps[i] = false;
695
696 for (int i = 0; i < (int)ControllerButton::Count; i++)
697 pInputState->buttonDowns[i] = false;
698 for (int i = 0; i < (int)ControllerButton::Count; i++)
699 pInputState->buttonUps[i] = false;
700
701 pInputState->textInputString.Reset();
702 for (Axis& axis : pInputState->axes) {
703 if (axis.isMouseDriver) {
704 axis.axisValue = 0.0f;
705 }
706 }
707}
708
709// ***********************************************************************
710

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected