Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
bool KeyBoard::keyPressed(SDL_Scancode key)
28
{
29
return bKeys_state[input_state][key] && !bKeys_state[input_state ^ 1][key];
30
}
31
32
bool KeyBoard::keyReleased(SDL_Scancode key)
33
{
Callers
2
I_updateGameInput
Function · 0.80
I_updateProgramInput
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected