Minor formatting
This commit is contained in:
parent
8a87fab5f0
commit
dd63163543
|
@ -76,7 +76,7 @@ fn main() {
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
match sock.recv_from(&mut buf) {
|
match sock.recv_from(&mut buf) {
|
||||||
Ok((size, addr)) => {
|
Ok((size, _addr)) => {
|
||||||
let (_, packet) = rosc::decoder::decode_udp(&buf[..size]).unwrap();
|
let (_, packet) = rosc::decoder::decode_udp(&buf[..size]).unwrap();
|
||||||
handle_packet(packet, &event_key_map);
|
handle_packet(packet, &event_key_map);
|
||||||
}
|
}
|
||||||
|
@ -128,13 +128,11 @@ fn handle_packet(packet: OscPacket, mappings: &HashMap<String, EventCache>) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Press key
|
// Press key
|
||||||
println!("Pressing key: {:?}", reaction.key);
|
println!("Pressing key: {:?}", reaction.key);
|
||||||
reaction.key.press();
|
reaction.key.press();
|
||||||
reaction.key.release();
|
reaction.key.release();
|
||||||
}
|
}
|
||||||
OscPacket::Bundle(bundle) => {
|
OscPacket::Bundle(_bundle) => {}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue