1
0
Fork 0
forked from wry/wry
wry/jay-config/src/input/acceleration.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

14 lines
516 B
Rust

//! Constants determining the acceleration profile of a device.
//!
//! See the libinput documentation for details.
use serde::{Deserialize, Serialize};
/// The acceleration profile of a device.
#[derive(Serialize, Deserialize, Copy, Clone, Debug, Hash, Eq, PartialEq)]
pub struct AccelProfile(pub u32);
/// A flat acceleration profile.
pub const ACCEL_PROFILE_FLAT: AccelProfile = AccelProfile(1 << 0);
/// An adaptive acceleration profile.
pub const ACCEL_PROFILE_ADAPTIVE: AccelProfile = AccelProfile(1 << 1);