|
|
@ -48,23 +48,11 @@ class KeyScanner: public kaleidoscope::driver::keyscanner::Base<KeyScannerProps>
|
|
|
|
static void readMatrix();
|
|
|
|
static void readMatrix();
|
|
|
|
static void actOnMatrixScan();
|
|
|
|
static void actOnMatrixScan();
|
|
|
|
|
|
|
|
|
|
|
|
static bool isKeyswitchPressed(KeyAddr key_addr) {
|
|
|
|
static bool isKeyswitchPressed(KeyAddr key_addr);
|
|
|
|
//return bitRead(keyState, key_addr.col());
|
|
|
|
static uint8_t pressedKeyswitchCount();
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
static bool wasKeyswitchPressed(KeyAddr key_addr);
|
|
|
|
static uint8_t pressedKeyswitchCount() {
|
|
|
|
static uint8_t previousPressedKeyswitchCount();
|
|
|
|
//return __builtin_popcount(keyState);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static bool wasKeyswitchPressed(KeyAddr key_addr) {
|
|
|
|
|
|
|
|
//return bitRead(previousKeyState, key_addr.col());
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static uint8_t previousPressedKeyswitchCount() {
|
|
|
|
|
|
|
|
//return __builtin_popcount(previousKeyState);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
each of these variables are storing the state for a row of keys
|
|
|
|
each of these variables are storing the state for a row of keys
|
|
|
|