|
|
@ -107,14 +107,11 @@ void TestMode::handleKeyEvent(side_data_t *side, keydata_t *oldState, keydata_t
|
|
|
|
// If the key is held down
|
|
|
|
// If the key is held down
|
|
|
|
if (keyState == HELD) {
|
|
|
|
if (keyState == HELD) {
|
|
|
|
KeyboardHardware.setCrgbAt(row, col_offset - col, green);
|
|
|
|
KeyboardHardware.setCrgbAt(row, col_offset - col, green);
|
|
|
|
}
|
|
|
|
} else if (bitRead(side->badKeys, keynum) == 1) {
|
|
|
|
// If we triggered chatter detection ever on this key
|
|
|
|
// If we triggered chatter detection ever on this key
|
|
|
|
else if (bitRead(side->badKeys, keynum) == 1) {
|
|
|
|
|
|
|
|
KeyboardHardware.setCrgbAt(row, col_offset - col, red);
|
|
|
|
KeyboardHardware.setCrgbAt(row, col_offset - col, red);
|
|
|
|
}
|
|
|
|
} else if (keyState == TOGGLED_OFF) {
|
|
|
|
|
|
|
|
|
|
|
|
// If the key was just released
|
|
|
|
// If the key was just released
|
|
|
|
else if (keyState == TOGGLED_OFF) {
|
|
|
|
|
|
|
|
KeyboardHardware.setCrgbAt(row, col_offset - col, blue);
|
|
|
|
KeyboardHardware.setCrgbAt(row, col_offset - col, blue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|