Enum input_linux::AbsoluteAxis
source · #[repr(u16)]
pub enum AbsoluteAxis {
Show 64 variants
X,
Y,
Z,
RX,
RY,
RZ,
Throttle,
Rudder,
Wheel,
Gas,
Brake,
UnknownB,
UnknownC,
UnknownD,
UnknownE,
UnknownF,
Hat0X,
Hat0Y,
Hat1X,
Hat1Y,
Hat2X,
Hat2Y,
Hat3X,
Hat3Y,
Pressure,
Distance,
TiltX,
TiltY,
ToolWidth,
Unknown1D,
Unknown1E,
Unknown1F,
Volume,
Profile,
Unknown22,
Unknown23,
Unknown24,
Unknown25,
Unknown26,
Unknown27,
Misc,
Unknown29,
Unknown2A,
Unknown2B,
Unknown2C,
Unknown2D,
Reserved,
MultitouchSlot,
MultitouchTouchMajor,
MultitouchTouchMinor,
MultitouchWidthMajor,
MultitouchWidthMinor,
MultitouchOrientation,
MultitouchPositionX,
MultitouchPositionY,
MultitouchToolType,
MultitouchBlobId,
MultitouchTrackingId,
MultitouchPressure,
MultitouchDistance,
MultitouchToolX,
MultitouchToolY,
Unknown3E,
Unknown3F,
}
Expand description
Absolute axes.
Variants§
X
Y
Z
RX
RY
RZ
Throttle
Rudder
Wheel
Gas
Brake
UnknownB
UnknownC
UnknownD
UnknownE
UnknownF
Hat0X
Hat0Y
Hat1X
Hat1Y
Hat2X
Hat2Y
Hat3X
Hat3Y
Pressure
Distance
TiltX
TiltY
ToolWidth
Unknown1D
Unknown1E
Unknown1F
Volume
Profile
Unknown22
Unknown23
Unknown24
Unknown25
Unknown26
Unknown27
Misc
Unknown29
Unknown2A
Unknown2B
Unknown2C
Unknown2D
Reserved
MultitouchSlot
MT slot being modified
MultitouchTouchMajor
Major axis of touching ellipse
MultitouchTouchMinor
Minor axis (omit if circular)
MultitouchWidthMajor
Major axis of approaching ellipse
MultitouchWidthMinor
Minor axis (omit if circular)
MultitouchOrientation
Ellipse orientation
MultitouchPositionX
Center X touch position
MultitouchPositionY
Center Y touch position
MultitouchToolType
Type of touching device
MultitouchBlobId
Group a set of packets as a blob
MultitouchTrackingId
Unique ID of initiated contact
MultitouchPressure
Pressure on contact area
MultitouchDistance
Contact hover distance
MultitouchToolX
Center X tool position
MultitouchToolY
Center Y tool position
Unknown3E
Unknown3F
Implementations§
source§impl AbsoluteAxis
impl AbsoluteAxis
source§impl AbsoluteAxis
impl AbsoluteAxis
sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
source§impl BitmaskTrait for AbsoluteAxis
impl BitmaskTrait for AbsoluteAxis
§type Index = AbsoluteAxis
type Index = AbsoluteAxis
The type that the bitmask can be indexed by.
source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
source§impl Clone for AbsoluteAxis
impl Clone for AbsoluteAxis
source§fn clone(&self) -> AbsoluteAxis
fn clone(&self) -> AbsoluteAxis
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 AbsoluteAxis
impl Debug for AbsoluteAxis
source§impl<'de> Deserialize<'de> for AbsoluteAxis
impl<'de> Deserialize<'de> for AbsoluteAxis
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 From<AbsoluteAxis> for u16
impl From<AbsoluteAxis> for u16
source§fn from(v: AbsoluteAxis) -> Self
fn from(v: AbsoluteAxis) -> Self
Converts to this type from the input type.
source§impl Hash for AbsoluteAxis
impl Hash for AbsoluteAxis
source§impl IterableEnum for AbsoluteAxis
impl IterableEnum for AbsoluteAxis
source§impl Ord for AbsoluteAxis
impl Ord for AbsoluteAxis
source§fn cmp(&self, other: &AbsoluteAxis) -> Ordering
fn cmp(&self, other: &AbsoluteAxis) -> 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<AbsoluteAxis> for AbsoluteAxis
impl PartialEq<AbsoluteAxis> for AbsoluteAxis
source§fn eq(&self, other: &AbsoluteAxis) -> bool
fn eq(&self, other: &AbsoluteAxis) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AbsoluteAxis> for AbsoluteAxis
impl PartialOrd<AbsoluteAxis> for AbsoluteAxis
source§fn partial_cmp(&self, other: &AbsoluteAxis) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsoluteAxis) -> 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