|
|
|
@ -93,9 +93,10 @@ OneShot::mask (byte row, byte col) {
|
|
|
|
|
if (col >= 8) {
|
|
|
|
|
col = col - 8;
|
|
|
|
|
rightMask |= SCANBIT(row, col);
|
|
|
|
|
} else
|
|
|
|
|
} else {
|
|
|
|
|
leftMask |= SCANBIT(row, col);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
OneShot::unmask(byte row, byte col) {
|
|
|
|
@ -105,9 +106,10 @@ OneShot::unmask (byte row, byte col) {
|
|
|
|
|
if (col >= 8) {
|
|
|
|
|
col = col - 8;
|
|
|
|
|
rightMask &= ~(SCANBIT(row, col));
|
|
|
|
|
} else
|
|
|
|
|
} else {
|
|
|
|
|
leftMask &= ~(SCANBIT(row, col));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
OneShot::isMasked(byte row, byte col) {
|
|
|
|
@ -117,9 +119,10 @@ OneShot::isMasked (byte row, byte col) {
|
|
|
|
|
if (col >= 8) {
|
|
|
|
|
col = col - 8;
|
|
|
|
|
return rightMask & SCANBIT(row, col);
|
|
|
|
|
} else
|
|
|
|
|
} else {
|
|
|
|
|
return leftMask & SCANBIT(row, col);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Key
|
|
|
|
|
OneShot::eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyState) {
|
|
|
|
|