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

Method changeKeyState

gui/qt/keypad/keypadwidget.cpp:351–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351void KeypadWidget::changeKeyState(KeyCode code, bool press) {
352 if (Key *key = mKeys[code.row()][code.col()]) {
353 bool wasSelected = key->isSelected();
354 key->setPressed(press);
355 updateKey(key, wasSelected);
356 }
357}
358
359void KeypadWidget::updateKey(Key *key, bool wasSelected) {
360 bool selected = key->isSelected();

Callers

nothing calls this directly

Calls 4

rowMethod · 0.80
colMethod · 0.80
setPressedMethod · 0.80
isSelectedMethod · 0.45

Tested by

no test coverage detected