MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / sendCSC

Function sendCSC

core/extras.c:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#define CE_keyReady (1 << 5)
14
15bool 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
25bool EMSCRIPTEN_KEEPALIVE sendKey(uint16_t key) {
26 uint8_t flags = mem_peek_byte(CE_graphFlags2);

Callers

nothing calls this directly

Calls 2

mem_peek_byteFunction · 0.85
mem_poke_byteFunction · 0.85

Tested by

no test coverage detected