parent
b1cb419f3d
commit
26b415667a
|
|
@ -253,7 +253,7 @@ impl Application for Main {
|
||||||
self.configuring = None;
|
self.configuring = None;
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
Message::EventOccurred(event) => {
|
Message::EventOccurred(event) => {
|
||||||
match event {
|
match event {
|
||||||
|
|
@ -269,6 +269,7 @@ impl Application for Main {
|
||||||
self.keys_newly_down.dedup();
|
self.keys_newly_down.dedup();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
self.exchange();
|
||||||
},
|
},
|
||||||
iced::event::Event::Keyboard(keyboard::Event::KeyReleased{
|
iced::event::Event::Keyboard(keyboard::Event::KeyReleased{
|
||||||
key_code,
|
key_code,
|
||||||
|
|
@ -288,9 +289,10 @@ impl Application for Main {
|
||||||
},
|
},
|
||||||
None => {},
|
None => {},
|
||||||
};
|
};
|
||||||
|
self.exchange();
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
self.configuring = Some(msg.clone());
|
self.configuring = Some(msg.clone());
|
||||||
|
|
@ -306,7 +308,7 @@ impl Application for Main {
|
||||||
iced::Event::Keyboard(_) => Some(Message::EventOccurred(event)),
|
iced::Event::Keyboard(_) => Some(Message::EventOccurred(event)),
|
||||||
_ => None,
|
_ => None,
|
||||||
}),
|
}),
|
||||||
every(std::time::Duration::from_millis(5)).map(|_| Message::Tick),
|
every(std::time::Duration::from_millis(5000)).map(|_| Message::Tick),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue