The real activation keys. This is the single place in the tree that spells them out; the shipped code carries only the precomputed step values. Driving these keys through unlockSteps() end-to-end also verifies those constants.
| 17 | // them out; the shipped code carries only the precomputed step values. Driving |
| 18 | // these keys through unlockSteps() end-to-end also verifies those constants. |
| 19 | std::vector<int> activationKeys() { |
| 20 | return {Qt::Key_Up, Qt::Key_Up, Qt::Key_Down, Qt::Key_Down, Qt::Key_Left, |
| 21 | Qt::Key_Right, Qt::Key_Left, Qt::Key_Right, Qt::Key_B, Qt::Key_A}; |
| 22 | } |
| 23 | |
| 24 | QKeyEvent makePress(int key, bool autorepeat = false) { |
| 25 | return QKeyEvent(QEvent::KeyPress, key, Qt::NoModifier, QString(), autorepeat); |