autocommit 2022-02-16 18:14:14 CET
This commit is contained in:
parent
086f2f73f4
commit
8d0b82c37c
17 changed files with 220 additions and 42 deletions
|
|
@ -6,6 +6,9 @@ linear_ids!(OutputIds, OutputId);
|
|||
linear_ids!(KeyboardIds, KeyboardId);
|
||||
linear_ids!(MouseIds, MouseId);
|
||||
|
||||
pub trait Backend {
|
||||
}
|
||||
|
||||
pub trait Output {
|
||||
fn id(&self) -> OutputId;
|
||||
fn removed(&self) -> bool;
|
||||
|
|
@ -19,6 +22,7 @@ pub trait Keyboard {
|
|||
fn removed(&self) -> bool;
|
||||
fn event(&self) -> Option<KeyboardEvent>;
|
||||
fn on_change(&self, cb: Rc<dyn Fn()>);
|
||||
fn grab(&self, grab: bool);
|
||||
}
|
||||
|
||||
pub trait Mouse {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue