Struct input_linux::AbsoluteInfo
[−]
[src]
#[repr(C)]pub struct AbsoluteInfo { pub value: i32, pub minimum: i32, pub maximum: i32, pub fuzz: i32, pub flat: i32, pub resolution: i32, }
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
impl Copy for AbsoluteInfo
[src]
impl Clone for AbsoluteInfo
[src]
fn clone(&self) -> AbsoluteInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for AbsoluteInfo
[src]
fn default() -> AbsoluteInfo
[src]
Returns the "default value" for a type. Read more
impl PartialOrd for AbsoluteInfo
[src]
fn partial_cmp(&self, __arg_0: &AbsoluteInfo) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &AbsoluteInfo) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &AbsoluteInfo) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &AbsoluteInfo) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &AbsoluteInfo) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for AbsoluteInfo
[src]
fn cmp(&self, __arg_0: &AbsoluteInfo) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialEq for AbsoluteInfo
[src]
fn eq(&self, __arg_0: &AbsoluteInfo) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AbsoluteInfo) -> bool
[src]
This method tests for !=
.
impl Eq for AbsoluteInfo
[src]
impl Hash for AbsoluteInfo
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for AbsoluteInfo
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> From<&'a input_absinfo> for &'a AbsoluteInfo
[src]
fn from(info: &'a input_absinfo) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a AbsoluteInfo> for &'a input_absinfo
[src]
fn from(info: &'a AbsoluteInfo) -> Self
[src]
Performs the conversion.
impl From<input_absinfo> for AbsoluteInfo
[src]
fn from(info: input_absinfo) -> Self
[src]
Performs the conversion.
impl From<AbsoluteInfo> for input_absinfo
[src]
fn from(info: AbsoluteInfo) -> Self
[src]
Performs the conversion.