This commit is contained in:
Bel LaPointe
2023-03-23 17:08:43 -06:00
parent 0af94250fb
commit ca192aa4ac
2 changed files with 7 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ struct Main {
ntfy: String,
configuring: Option<Message>,
inputs: Inputs,
// TODO keys down
flags: Flags,
}
@@ -136,8 +137,9 @@ impl Application for Main {
}
},
Message::EventOccurred(event) => {
eprintln!("{:?}", event);
match event {
iced::event::Event::Keyboard(keyboard::Event::KeyPressed{
iced::event::Event::Keyboard(keyboard::Event::KeyPressed{ // TODO key released
key_code,
modifiers: _,
..
@@ -168,6 +170,7 @@ impl Application for Main {
self.ntfy = format!("push a key to bind to {:?}", msg.clone());
},
}
// TODO self.flags.output_stream.put(s.chars().collect()); for all keys down
return Command::none();
}