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

Method keyPressed

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

Source from the content-addressed store, hash-verified

25}
26
27bool KeyBoard::keyPressed(SDL_Scancode key)
28{
29 return bKeys_state[input_state][key] && !bKeys_state[input_state ^ 1][key];
30}
31
32bool KeyBoard::keyReleased(SDL_Scancode key)
33{

Callers 2

I_updateGameInputFunction · 0.80
I_updateProgramInputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected