Move DBUS and keyboard reads on to tokio

This greatly improves throughput of per-key LED effects.
Also add a cool-down timer in the main loop to adjust
thread speed and prevent it running at maximum speed.
This commit is contained in:
Luke
2020-04-26 22:28:25 +12:00
parent 13e736dbed
commit 8200dc85e6
8 changed files with 182 additions and 157 deletions

View File

@@ -28,6 +28,4 @@ thiserror = "^1.0.15"
log = "^0.4.8"
uhid-virt = "^0.0.4"
#keycode = "0.3"
env_logger = "^0.7.1"
async-trait = "0.1.30"
env_logger = "^0.7.1"