jay_config/input/clickmethod.rs
1//! Constants determining the click method of a device.
2//!
3//! See the libinput documentation for details.
4
5use serde::Deserialize;
6use serde::Serialize;
7
8/// The click method of a device.
9#[derive(Serialize, Deserialize, Copy, Clone, Debug, Hash, Eq, PartialEq)]
10pub struct ClickMethod(pub u32);
11
12/// No click method handling
13pub const CLICK_METHOD_NONE: ClickMethod = ClickMethod(0);
14
15/// Button area
16pub const CLICK_METHOD_BUTTON_AREAS: ClickMethod = ClickMethod(1 << 0);
17
18/// Clickfinger
19pub const CLICK_METHOD_CLICKFINGER: ClickMethod = ClickMethod(1 << 1);