1

change keyboard demo to event listener

This commit is contained in:
2022-07-11 22:51:03 +02:00
parent 60bb0cea78
commit 5ca6d25c7c
9 changed files with 58 additions and 14 deletions

View File

@ -340,10 +340,11 @@ void Keyboard::trigger() {
// NOTE: My keyboard has no delete key...
if (key.ctrl_left() && key.alt_left() && (char)key == 'r') {
this->reboot();
}
else if ((char)key == 'k' || (char)key == 'j') {
} else if ((char)key == 'k' || (char)key == 'j') {
scroll_mode(key);
}
kevman.broadcast(key);
}
// TODO: Where to place this?