1
0
Fork 0
forked from wry/wry
wry/jay-config/src/input/capability.rs
Julian Orth 615acd4847 config: downgrade bincode to 1.3.3
This should not have any impact on existing configs since bincode claims
compatibility of the wire format between 1.3.3 and 2.0.0.
2024-02-16 14:12:53 +01:00

17 lines
684 B
Rust

//! Constants specifying the capabilities of an input device.
//!
//! See the libinput documentation for the meanings of these constants.
use serde::{Deserialize, Serialize};
/// A capability of an input device.
#[derive(Serialize, Deserialize, 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);