#[repr(u16)]pub enum AbsoluteAxis {
Show 64 variants
X = 0,
Y = 1,
Z = 2,
RX = 3,
RY = 4,
RZ = 5,
Throttle = 6,
Rudder = 7,
Wheel = 8,
Gas = 9,
Brake = 10,
UnknownB = 11,
UnknownC = 12,
UnknownD = 13,
UnknownE = 14,
UnknownF = 15,
Hat0X = 16,
Hat0Y = 17,
Hat1X = 18,
Hat1Y = 19,
Hat2X = 20,
Hat2Y = 21,
Hat3X = 22,
Hat3Y = 23,
Pressure = 24,
Distance = 25,
TiltX = 26,
TiltY = 27,
ToolWidth = 28,
Unknown1D = 29,
Unknown1E = 30,
Unknown1F = 31,
Volume = 32,
Profile = 33,
Unknown22 = 34,
Unknown23 = 35,
Unknown24 = 36,
Unknown25 = 37,
Unknown26 = 38,
Unknown27 = 39,
Misc = 40,
Unknown29 = 41,
Unknown2A = 42,
Unknown2B = 43,
Unknown2C = 44,
Unknown2D = 45,
Reserved = 46,
MultitouchSlot = 47,
MultitouchTouchMajor = 48,
MultitouchTouchMinor = 49,
MultitouchWidthMajor = 50,
MultitouchWidthMinor = 51,
MultitouchOrientation = 52,
MultitouchPositionX = 53,
MultitouchPositionY = 54,
MultitouchToolType = 55,
MultitouchBlobId = 56,
MultitouchTrackingId = 57,
MultitouchPressure = 58,
MultitouchDistance = 59,
MultitouchToolX = 60,
MultitouchToolY = 61,
Unknown3E = 62,
Unknown3F = 63,
}
Expand description
Absolute axes.
Variants§
X = 0
Y = 1
Z = 2
RX = 3
RY = 4
RZ = 5
Throttle = 6
Rudder = 7
Wheel = 8
Gas = 9
Brake = 10
UnknownB = 11
UnknownC = 12
UnknownD = 13
UnknownE = 14
UnknownF = 15
Hat0X = 16
Hat0Y = 17
Hat1X = 18
Hat1Y = 19
Hat2X = 20
Hat2Y = 21
Hat3X = 22
Hat3Y = 23
Pressure = 24
Distance = 25
TiltX = 26
TiltY = 27
ToolWidth = 28
Unknown1D = 29
Unknown1E = 30
Unknown1F = 31
Volume = 32
Profile = 33
Unknown22 = 34
Unknown23 = 35
Unknown24 = 36
Unknown25 = 37
Unknown26 = 38
Unknown27 = 39
Misc = 40
Unknown29 = 41
Unknown2A = 42
Unknown2B = 43
Unknown2C = 44
Unknown2D = 45
Reserved = 46
MultitouchSlot = 47
MT slot being modified
MultitouchTouchMajor = 48
Major axis of touching ellipse
MultitouchTouchMinor = 49
Minor axis (omit if circular)
MultitouchWidthMajor = 50
Major axis of approaching ellipse
MultitouchWidthMinor = 51
Minor axis (omit if circular)
MultitouchOrientation = 52
Ellipse orientation
MultitouchPositionX = 53
Center X touch position
MultitouchPositionY = 54
Center Y touch position
MultitouchToolType = 55
Type of touching device
MultitouchBlobId = 56
Group a set of packets as a blob
MultitouchTrackingId = 57
Unique ID of initiated contact
MultitouchPressure = 58
Pressure on contact area
MultitouchDistance = 59
Contact hover distance
MultitouchToolX = 60
Center X tool position
MultitouchToolY = 61
Center Y tool position
Unknown3E = 62
Unknown3F = 63
Implementations§
Source§impl AbsoluteAxis
impl AbsoluteAxis
Sourcepub fn iter() -> EnumIterator<Self> ⓘ
pub fn iter() -> EnumIterator<Self> ⓘ
An iterator over all values of the enum.
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
Source§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 for AbsoluteAxis
impl PartialEq for AbsoluteAxis
Source§impl PartialOrd for AbsoluteAxis
impl PartialOrd for AbsoluteAxis
Source§impl Serialize for AbsoluteAxis
impl Serialize for AbsoluteAxis
Source§impl TryFrom<u16> for AbsoluteAxis
impl TryFrom<u16> for AbsoluteAxis
impl Copy for AbsoluteAxis
impl Eq for AbsoluteAxis
impl StructuralPartialEq for AbsoluteAxis
Auto Trait Implementations§
impl Freeze for AbsoluteAxis
impl RefUnwindSafe for AbsoluteAxis
impl Send for AbsoluteAxis
impl Sync for AbsoluteAxis
impl Unpin for AbsoluteAxis
impl UnwindSafe for AbsoluteAxis
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