MCPcopy Create free account
hub / github.com/InkboxSoftware/all-screen-keyboard / pressKey

Method pressKey

keyboard/src/serialKeyboard.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool serialInterface::pressKey(uint16_t keyCode){
64 cout << "Serial Key: " << keyCode << endl;
65 keyDownMsg[1] = keyCode >> 8;
66 keyDownMsg[2] = keyCode & 0xFF;
67 return write(fd, keyDownMsg, sizeof(keyDownMsg));
68}
69
70bool serialInterface::releaseKey(uint16_t keyCode){
71 keyUpMsg[1] = keyCode >> 8;

Callers 1

keyboardMonitorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected