Dbus signals (#28)

* Small rename of dbus args
* Split out parts of main loop to tasks
* Send signals on boot
This commit is contained in:
Luke Jones
2020-07-07 13:33:32 +12:00
committed by GitHub
parent 2dc61fe994
commit 229fa93bc7
6 changed files with 186 additions and 55 deletions

View File

@@ -24,7 +24,8 @@ impl Ball {
}
}
fn update(&mut self, key_map: &Vec<[Key; 17]>) {
#[allow(clippy::if_same_then_else)]
fn update(&mut self, key_map: &[[Key; 17]]) {
let pos = self.position;
let dir = self.direction;