Minor formatting

This commit is contained in:
Gabriel Simmer 2023-04-25 16:56:20 +01:00
parent 8a87fab5f0
commit dd63163543
Signed by: arch
GPG key ID: C81B106D46C5B875

View file

@ -76,7 +76,7 @@ fn main() {
loop {
match sock.recv_from(&mut buf) {
Ok((size, addr)) => {
Ok((size, _addr)) => {
let (_, packet) = rosc::decoder::decode_udp(&buf[..size]).unwrap();
handle_packet(packet, &event_key_map);
}
@ -128,13 +128,11 @@ fn handle_packet(packet: OscPacket, mappings: &HashMap<String, EventCache>) {
}
}
// Press key
println!("Pressing key: {:?}", reaction.key);
println!("Pressing key: {:?}", reaction.key);
reaction.key.press();
reaction.key.release();
}
OscPacket::Bundle(bundle) => {
}
OscPacket::Bundle(_bundle) => {}
}
}