Handle key releases
| 257 | |
| 258 | // Handle key releases |
| 259 | void 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 |
| 265 | bool Keyboard::isKeycodeDown(SDL_Keycode which_key, const uint32_t kimf) const { |