MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / handleKeyUp

Method handleKeyUp

Source/UserInput/keyboard.cpp:259–262  ·  view source on GitHub ↗

Handle key releases

Source from the content-addressed store, hash-verified

257
258// Handle key releases
259void Keyboard::handleKeyUp(SDL_Keysym the_key) {
260 KeyStatus &key = keys[the_key.scancode];
261 key.down = false;
262}
263
264// Check if a key is pressed
265bool Keyboard::isKeycodeDown(SDL_Keycode which_key, const uint32_t kimf) const {

Callers 1

HandleEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected