Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
bool KeyBoard::keyDown(SDL_Scancode key) { return bKeys_state[input_state][key]; }
38
39
bool KeyBoard::keyUp(SDL_Scancode key) { return !bKeys_state[input_state][key]; }
40
Callers
3
I_updateGameInput
Function · 0.80
I_updateProgramInput
Function · 0.80
update
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected