Ensure key is released properly
This commit is contained in:
parent
98e1f270ef
commit
36ef676d2a
|
@ -131,6 +131,7 @@ 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();
|
||||||
}
|
}
|
||||||
OscPacket::Bundle(bundle) => {
|
OscPacket::Bundle(bundle) => {
|
||||||
println!("OSC Bundle: {:?}", bundle);
|
println!("OSC Bundle: {:?}", bundle);
|
||||||
|
|
Loading…
Reference in a new issue