Merge pull request #92 from CapeLeidokos/pr_key_API
Adapted the sketch to changes in the Key API
This commit is contained in:
commit
2f9d140ba9
@ -305,7 +305,7 @@ static void anyKeyMacro(uint8_t keyState) {
|
|||||||
static Key lastKey;
|
static Key lastKey;
|
||||||
bool toggledOn = false;
|
bool toggledOn = false;
|
||||||
if (keyToggledOn(keyState)) {
|
if (keyToggledOn(keyState)) {
|
||||||
lastKey.keyCode = Key_A.keyCode + (uint8_t)(millis() % 36);
|
lastKey.setKeyCode(Key_A.getKeyCode() + (uint8_t)(millis() % 36));
|
||||||
toggledOn = true;
|
toggledOn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user