Rename Input to InputEvent and add paste events
This commit is contained in:
parent
fdc46aa3b8
commit
6ce2afbc9f
4 changed files with 105 additions and 70 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue