Enum input::AccelProfile [−][src]
#[non_exhaustive]
pub enum AccelProfile {
Flat,
Adaptive,
}
Expand description
Pointer Acceleration Profile
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Flat
A flat acceleration profile.
Pointer motion is accelerated by a constant (device-specific) factor, depending on the current speed.
Adaptive
An adaptive acceleration profile.
Pointer acceleration depends on the input speed. This is the default profile for most devices.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AccelProfile
impl Send for AccelProfile
impl Sync for AccelProfile
impl Unpin for AccelProfile
impl UnwindSafe for AccelProfile
Blanket Implementations
Mutably borrows from an owned value. Read more