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, Serialize};
6
7/// The click method of a device.
8#[derive(Serialize, Deserialize, Copy, Clone, Debug, Hash, Eq, PartialEq)]
9pub struct ClickMethod(pub u32);
10
11/// No click method handling
12pub const CLICK_METHOD_NONE: ClickMethod = ClickMethod(0);
13
14/// Button area
15pub const CLICK_METHOD_BUTTON_AREAS: ClickMethod = ClickMethod(1 << 0);
16
17/// Clickfinger
18pub const CLICK_METHOD_CLICKFINGER: ClickMethod = ClickMethod(1 << 1);