|
|
@ -65,17 +65,17 @@ void KeyScanner::readMatrix() {
|
|
|
|
void KeyScanner::actOnMatrixScan() {
|
|
|
|
void KeyScanner::actOnMatrixScan() {
|
|
|
|
if (bitRead(keyState, 0) != bitRead(previousKeyState, 0)) {
|
|
|
|
if (bitRead(keyState, 0) != bitRead(previousKeyState, 0)) {
|
|
|
|
ThisType::handleKeyswitchEvent(
|
|
|
|
ThisType::handleKeyswitchEvent(
|
|
|
|
Key_NoKey,
|
|
|
|
Key_NoKey,
|
|
|
|
typename Props_::KeyAddr(0, 0),
|
|
|
|
typename Props_::KeyAddr(0, 0),
|
|
|
|
keyState
|
|
|
|
keyState
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (bitRead(keyState, 1) != bitRead(previousKeyState, 1)) {
|
|
|
|
if (bitRead(keyState, 1) != bitRead(previousKeyState, 1)) {
|
|
|
|
ThisType::handleKeyswitchEvent(
|
|
|
|
ThisType::handleKeyswitchEvent(
|
|
|
|
Key_NoKey,
|
|
|
|
Key_NoKey,
|
|
|
|
typename Props_::KeyAddr(0, 1),
|
|
|
|
typename Props_::KeyAddr(0, 1),
|
|
|
|
keyState
|
|
|
|
keyState
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|