Rename Input to InputEvent and add paste events

This commit is contained in:
Joscha 2023-04-27 21:10:34 +02:00
parent fdc46aa3b8
commit 6ce2afbc9f
4 changed files with 105 additions and 70 deletions

View file

@ -1,14 +1,14 @@
mod input;
mod event;
mod keys;
pub use cove_macro::KeyGroup;
pub use input::*;
pub use event::*;
pub use keys::*;
/// A group of related key bindings.
pub trait KeyGroup {
type Event;
fn event(&self, input: &mut Input) -> Option<Self::Event>;
fn match_input_event(&self, event: &mut InputEvent) -> Option<Self::Event>;
}