[][src]Enum input_linux::AbsoluteAxis

#[repr(u16)]pub enum AbsoluteAxis {
    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,
    Unknown21,
    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,
}

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
Unknown21
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

impl AbsoluteAxis[src]

pub const COUNT: usize[src]

The maximum valid value.

pub fn iter() -> EnumIterator<Self>

Notable traits for EnumIterator<T>

impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]

An iterator over all values of the enum.

pub fn bitmask() -> Bitmask<Self>[src]

A bitmask that can contain all values of the enum.

impl AbsoluteAxis[src]

pub fn from_code(code: u16) -> Result<Self, RangeError>[src]

Instantiates the enum from a raw code value.

Trait Implementations

impl BitmaskTrait for AbsoluteAxis[src]

type Array = [u8; 8]

The underlying array storage data type.

type Index = AbsoluteAxis

The type that the bitmask can be indexed by.

impl Clone for AbsoluteAxis[src]

impl Copy for AbsoluteAxis[src]

impl Debug for AbsoluteAxis[src]

impl Eq for AbsoluteAxis[src]

impl From<AbsoluteAxis> for u16[src]

impl Hash for AbsoluteAxis[src]

impl IterableEnum for AbsoluteAxis[src]

impl Ord for AbsoluteAxis[src]

impl PartialEq<AbsoluteAxis> for AbsoluteAxis[src]

impl PartialOrd<AbsoluteAxis> for AbsoluteAxis[src]

impl StructuralEq for AbsoluteAxis[src]

impl StructuralPartialEq for AbsoluteAxis[src]

impl TryFrom<u16> for AbsoluteAxis[src]

type Error = RangeError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.