#[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§fn from(info: &'a input_absinfo) -> Self
fn from(info: &'a input_absinfo) -> Self
Converts to this type from the input type.
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§fn from(info: input_absinfo) -> Self
fn from(info: input_absinfo) -> Self
Converts to this type from the input type.
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 for AbsoluteInfo
impl PartialEq for AbsoluteInfo
Source§impl PartialOrd for AbsoluteInfo
impl PartialOrd for AbsoluteInfo
Source§impl Serialize for AbsoluteInfo
impl Serialize for AbsoluteInfo
impl Copy for AbsoluteInfo
impl Eq for AbsoluteInfo
impl StructuralPartialEq for AbsoluteInfo
Auto Trait Implementations§
impl Freeze for AbsoluteInfo
impl RefUnwindSafe for AbsoluteInfo
impl Send for AbsoluteInfo
impl Sync for AbsoluteInfo
impl Unpin for AbsoluteInfo
impl UnwindSafe for AbsoluteInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more