Tab cleanup
This commit is contained in:
parent
945f5e679c
commit
ccf8abbeca
@ -6,23 +6,23 @@ extern uint8_t keyboardResult;
|
|||||||
extern sfKeyCode currentKey;
|
extern sfKeyCode currentKey;
|
||||||
|
|
||||||
const static sfKeyCode scanMatrix[48] = {
|
const static sfKeyCode scanMatrix[48] = {
|
||||||
sfKeyNum1, sfKeyNum2, sfKeyNum3, sfKeyNum4, sfKeyNum5, sfKeyNum6, sfKeyNum7, sfKeyNum8,
|
sfKeyNum1, sfKeyNum2, sfKeyNum3, sfKeyNum4, sfKeyNum5, sfKeyNum6, sfKeyNum7, sfKeyNum8,
|
||||||
sfKeyQ, sfKeyW, sfKeyE, sfKeyR, sfKeyT, sfKeyY, sfKeyU, sfKeyI,
|
sfKeyQ, sfKeyW, sfKeyE, sfKeyR, sfKeyT, sfKeyY, sfKeyU, sfKeyI,
|
||||||
sfKeyA, sfKeyS, sfKeyD, sfKeyF, sfKeyG, sfKeyH, sfKeyJ, sfKeyK,
|
sfKeyA, sfKeyS, sfKeyD, sfKeyF, sfKeyG, sfKeyH, sfKeyJ, sfKeyK,
|
||||||
sfKeyZ, sfKeyX, sfKeyC, sfKeyV, sfKeyB, sfKeyN, sfKeyM, sfKeyComma,
|
sfKeyZ, sfKeyX, sfKeyC, sfKeyV, sfKeyB, sfKeyN, sfKeyM, sfKeyComma,
|
||||||
sfKeyNum9, sfKeyNum0, sfKeyL, sfKeyO, sfKeyP, sfKeyPeriod,sfKeyEnter, sfKeyBackspace,
|
sfKeyNum9, sfKeyNum0, sfKeyL, sfKeyO, sfKeyP, sfKeyPeriod,sfKeyEnter, sfKeyBackspace,
|
||||||
sfKeyLShift,sfKeyLControl, sfKeyLAlt, sfKeySpace, sfKeyUp, sfKeyRight, sfKeyDown, sfKeyLeft,
|
sfKeyLShift,sfKeyLControl, sfKeyLAlt, sfKeySpace, sfKeyUp, sfKeyRight, sfKeyDown, sfKeyLeft,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void scanKeyboard(){
|
void scanKeyboard(){
|
||||||
keyboardResult = 0;
|
keyboardResult = 0;
|
||||||
|
|
||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < 8; i++) {
|
||||||
if (currentKey == scanMatrix[i + (((systemRegister & 0x07) % 6) * 8)]){
|
if (currentKey == scanMatrix[i + (((systemRegister & 0x07) % 6) * 8)]){
|
||||||
keyboardResult |= (0x80 >> i);
|
keyboardResult |= (0x80 >> i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
keyboardResult ^= 0xFF;
|
keyboardResult ^= 0xFF;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user