MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / getKeyChar

Function getKeyChar

boards/m5stack-cardputer/interface.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23void mapRawKeyToPhysical(uint8_t rawValue, uint8_t &row, uint8_t &col);
24
25char getKeyChar(uint8_t row, uint8_t col) {
26 char keyVal;
27 if (shift_key_pressed ^ caps_lock) {
28 keyVal = _key_value_map[row][col].value_second;
29 } else {
30 keyVal = _key_value_map[row][col].value_first;
31 }
32 return keyVal;
33}
34
35int handleSpecialKeys(uint8_t row, uint8_t col, bool pressed) {
36 char keyVal = _key_value_map[row][col].value_first;

Callers 1

InputHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected