autocommit 2022-04-02 00:31:30 CEST
This commit is contained in:
parent
2dd433aa04
commit
6ad6d83b7e
34 changed files with 446 additions and 161 deletions
7
jay-config/src/input/acceleration.rs
Normal file
7
jay-config/src/input/acceleration.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use bincode::{Decode, Encode};
|
||||
|
||||
#[derive(Encode, Decode, Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
pub struct AccelProfile(pub u32);
|
||||
|
||||
pub const ACCEL_PROFILE_FLAT: AccelProfile = AccelProfile(1 << 0);
|
||||
pub const ACCEL_PROFILE_ADAPTIVE: AccelProfile = AccelProfile(1 << 1);
|
||||
12
jay-config/src/input/capability.rs
Normal file
12
jay-config/src/input/capability.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use bincode::{Decode, Encode};
|
||||
|
||||
#[derive(Encode, Decode, Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
pub struct Capability(pub u32);
|
||||
|
||||
pub const CAP_KEYBOARD: Capability = Capability(0);
|
||||
pub const CAP_POINTER: Capability = Capability(1);
|
||||
pub const CAP_TOUCH: Capability = Capability(2);
|
||||
pub const CAP_TABLET_TOOL: Capability = Capability(3);
|
||||
pub const CAP_TABLET_PAD: Capability = Capability(4);
|
||||
pub const CAP_GESTURE: Capability = Capability(5);
|
||||
pub const CAP_SWITCH: Capability = Capability(6);
|
||||
Loading…
Add table
Add a link
Reference in a new issue