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

Method update

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

Source from the content-addressed store, hash-verified

19KeyBoard::~KeyBoard() {}
20
21void KeyBoard::update()
22{
23 input_state ^= 1;
24 std::memcpy(bKeys_state[input_state], bKeys, sizeof(bKeys));
25}
26
27bool KeyBoard::keyPressed(SDL_Scancode key)
28{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected