mirror of
https://github.com/htrefil/rkvm.git
synced 2025-02-12 08:48:12 +01:00
Don't propagate switch keys
This commit is contained in:
parent
ec7cc151f7
commit
d34534c409
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,7 @@ async fn run(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: This won't work with multiple keys.
|
||||||
if key_states.iter().filter(|(_, state)| **state).count() == key_states.len() {
|
if key_states.iter().filter(|(_, state)| **state).count() == key_states.len() {
|
||||||
for (_, state) in &mut key_states {
|
for (_, state) in &mut key_states {
|
||||||
*state = false;
|
*state = false;
|
||||||
|
@ -130,6 +131,7 @@ async fn run(
|
||||||
|
|
||||||
current = (current + 1) % (clients.len() + 1);
|
current = (current + 1) % (clients.len() + 1);
|
||||||
log::info!("Switching to client {}", current);
|
log::info!("Switching to client {}", current);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if current != 0 {
|
if current != 0 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue