autocommit 2022-03-30 18:10:37 CEST
This commit is contained in:
parent
c4854c4d7d
commit
a8136ed88c
17 changed files with 189 additions and 81 deletions
|
|
@ -2,6 +2,7 @@ use crate::keyboard::keymap::Keymap;
|
|||
use crate::keyboard::ModifiedKeySym;
|
||||
use bincode::{Decode, Encode};
|
||||
use std::collections::HashMap;
|
||||
use crate::input::InputDevice;
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
|
@ -10,6 +11,7 @@ pub mod _private;
|
|||
pub mod embedded;
|
||||
pub mod keyboard;
|
||||
pub mod theme;
|
||||
pub mod input;
|
||||
|
||||
#[derive(Encode, Decode, Copy, Clone, Debug)]
|
||||
pub enum LogLevel {
|
||||
|
|
@ -39,15 +41,6 @@ impl Seat {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
pub struct InputDevice(pub u64);
|
||||
|
||||
impl InputDevice {
|
||||
pub fn set_seat(self, seat: Seat) {
|
||||
get!().set_seat(self, seat)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
pub enum Axis {
|
||||
Horizontal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue