MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / keyReleased

Method keyReleased

engine/src/input.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool KeyBoard::keyReleased(SDL_Scancode key)
33{
34 return !bKeys_state[input_state][key] && bKeys_state[input_state ^ 1][key];
35}
36
37bool KeyBoard::keyDown(SDL_Scancode key) { return bKeys_state[input_state][key]; }
38

Callers 3

I_updateGameInputFunction · 0.80
I_updateProgramInputFunction · 0.80
I_updateMenuInputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected