Struct input_linux::AbsoluteInfo
source · #[repr(C)]pub struct AbsoluteInfo {
pub value: i32,
pub minimum: i32,
pub maximum: i32,
pub fuzz: i32,
pub flat: i32,
pub resolution: i32,
}
Expand description
Describes the capabilities and constraints of an input device’s absolute axis.
Fields§
§value: i32
latest reported value for the axis
minimum: i32
specifies minimum value for the axis
maximum: i32
specifies maximum value for the axis
fuzz: i32
specifies fuzz value that is used to filter noise from the event stream
flat: i32
values that are within this value will be discarded by joydev interface and reported as 0 instead
resolution: i32
specifies resolution for the values reported for the axis
Resolution for main axes (ABS_X, ABS_Y, ABS_Z) is reported in units per millimeter (units/mm), resolution for rotational axes (ABS_RX, ABS_RY, ABS_RZ) is reported in units per radian.
Trait Implementations§
source§impl Clone for AbsoluteInfo
impl Clone for AbsoluteInfo
source§fn clone(&self) -> AbsoluteInfo
fn clone(&self) -> AbsoluteInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbsoluteInfo
impl Debug for AbsoluteInfo
source§impl Default for AbsoluteInfo
impl Default for AbsoluteInfo
source§fn default() -> AbsoluteInfo
fn default() -> AbsoluteInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AbsoluteInfo
impl<'de> Deserialize<'de> for AbsoluteInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a AbsoluteInfo> for &'a input_absinfo
impl<'a> From<&'a AbsoluteInfo> for &'a input_absinfo
source§fn from(info: &'a AbsoluteInfo) -> Self
fn from(info: &'a AbsoluteInfo) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a input_absinfo> for &'a AbsoluteInfo
impl<'a> From<&'a input_absinfo> for &'a AbsoluteInfo
source§impl From<AbsoluteInfo> for input_absinfo
impl From<AbsoluteInfo> for input_absinfo
source§fn from(info: AbsoluteInfo) -> Self
fn from(info: AbsoluteInfo) -> Self
Converts to this type from the input type.
source§impl From<input_absinfo> for AbsoluteInfo
impl From<input_absinfo> for AbsoluteInfo
source§impl Hash for AbsoluteInfo
impl Hash for AbsoluteInfo
source§impl Ord for AbsoluteInfo
impl Ord for AbsoluteInfo
source§fn cmp(&self, other: &AbsoluteInfo) -> Ordering
fn cmp(&self, other: &AbsoluteInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AbsoluteInfo> for AbsoluteInfo
impl PartialEq<AbsoluteInfo> for AbsoluteInfo
source§fn eq(&self, other: &AbsoluteInfo) -> bool
fn eq(&self, other: &AbsoluteInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AbsoluteInfo> for AbsoluteInfo
impl PartialOrd<AbsoluteInfo> for AbsoluteInfo
source§fn partial_cmp(&self, other: &AbsoluteInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsoluteInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more