| 224 | } |
| 225 | |
| 226 | static void OnKeyEvent(const SDL_Event* e) { |
| 227 | cc_bool pressed = e->key.down == true; |
| 228 | int key = MapNativeKey(e->key.key); |
| 229 | if (key) Input_Set(key, pressed); |
| 230 | } |
| 231 | |
| 232 | static void OnMouseEvent(const SDL_Event* e) { |
| 233 | cc_bool pressed = e->button.down == true; |
no test coverage detected