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

Method keyDown

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

Source from the content-addressed store, hash-verified

35}
36
37bool KeyBoard::keyDown(SDL_Scancode key) { return bKeys_state[input_state][key]; }
38
39bool KeyBoard::keyUp(SDL_Scancode key) { return !bKeys_state[input_state][key]; }
40

Callers 3

I_updateGameInputFunction · 0.80
I_updateProgramInputFunction · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected