| 13 | #define CE_keyReady (1 << 5) |
| 14 | |
| 15 | bool EMSCRIPTEN_KEEPALIVE sendCSC(uint8_t csc) { |
| 16 | uint8_t flags = mem_peek_byte(CE_kbdFlags); |
| 17 | if (flags & CE_kbdSCR) { |
| 18 | return false; |
| 19 | } |
| 20 | mem_poke_byte(CE_kbdScanCode, csc); |
| 21 | mem_poke_byte(CE_kbdFlags, flags | CE_kbdSCR); |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | bool EMSCRIPTEN_KEEPALIVE sendKey(uint16_t key) { |
| 26 | uint8_t flags = mem_peek_byte(CE_graphFlags2); |
nothing calls this directly
no test coverage detected