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