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

Function sendLetterKeyPress

core/extras.c:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool EMSCRIPTEN_KEEPALIVE sendLetterKeyPress(char letter) {
40 uint16_t key;
41 if (letter >= '0' && letter <= '9') {
42 key = 0x8E + letter - '0';
43 } else if (letter >= 'A' && letter <= 'Z') {
44 key = 0x9A + letter - 'A';
45 } else if (letter == 'Z' + 1 || letter == '@') { /* [ or @ for theta (caller should replace it) */
46 key = 0xCC;
47 } else {
48 return true;
49 }
50 return sendKey(key);
51}

Callers

nothing calls this directly

Calls 1

sendKeyFunction · 0.70

Tested by

no test coverage detected