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

Method kEvent

gui/qt/keypad/qtkeypadbridge.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void QtKeypadBridge::kEvent(QString text, int key, bool repeat) {
89 quint32 keys = kKeyMap[key & ~Qt::KeypadModifier];
90 if (!keys && text.length() == 1) {
91 keys = kTextMap[text[0]];
92 }
93 sendKeys(keys >> 16, keys, repeat);
94}
95
96void QtKeypadBridge::releaseAll() {
97 for (KeyCode code : pressed) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected