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

Method addKey

gui/qt/keypad/keypadwidget.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18const QRect KeypadWidget::sBaseRect{{}, QSize{162, 238}};
19
20void KeypadWidget::addKey(Key *key) {
21 const KeyCode code = key->keycode();
22 unsigned char row = code.row();
23 unsigned char col = code.col();
24 delete mKeys[row][col];
25 mKeys[row][col] = key;
26}
27
28unsigned KeypadWidget::getCurrColor() {
29 return color;

Callers

nothing calls this directly

Calls 3

keycodeMethod · 0.80
rowMethod · 0.80
colMethod · 0.80

Tested by

no test coverage detected