Ensure key is released properly

This commit is contained in:
Gabriel Simmer 2023-04-25 15:58:44 +01:00
parent 98e1f270ef
commit 36ef676d2a
Signed by: arch
GPG key ID: C81B106D46C5B875

View file

@ -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);