Skip to main content

AbsoluteAxis

Enum AbsoluteAxis 

Source
#[repr(u8)]
pub enum AbsoluteAxis {
Show 63 variants LeftX = 0, LeftY = 1, LeftZ = 2, RightX = 3, RightY = 4, RightZ = 5, Throttle = 6, Rudder = 7, Wheel = 8, Gas = 9, Break = 10, Unknown0B = 11, Unknown0C = 12, Unknown0D = 13, Unknown0E = 14, Unknown0F = 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, Unknown21 = 33, Unknown22 = 34, Unknown23 = 35, Unknown24 = 36, Unknown25 = 37, Unknown26 = 38, Unknown27 = 39, Miscellaneous = 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,
}
Expand description

Event codes for absolute axes

Variants§

§

LeftX = 0

Left X axis

§

LeftY = 1

Left Y axis

§

LeftZ = 2

Left Z axis

§

RightX = 3

Right X axis

§

RightY = 4

Right Y axis

§

RightZ = 5

Right Z axis

§

Throttle = 6

Throttle axis

§

Rudder = 7

Rudder axis

§

Wheel = 8

Wheel axis

§

Gas = 9

Gas axis

§

Break = 10

Break axis

§

Unknown0B = 11

Unknown axis 0B

§

Unknown0C = 12

Unknown axis 0C

§

Unknown0D = 13

Unknown axis 0D

§

Unknown0E = 14

Unknown axis 0E

§

Unknown0F = 15

Unknown axis 0F

§

Hat0X = 16

Hat0 X axis

§

Hat0Y = 17

Hat0 Y axis

§

Hat1X = 18

Hat1 X axis

§

Hat1Y = 19

Hat1 Y axis

§

Hat2X = 20

Hat2 X axis

§

Hat2Y = 21

Hat2 Y axis

§

Hat3X = 22

Hat3 X axis

§

Hat3Y = 23

Hat3 Y axis

§

Pressure = 24

Pressure axis

§

Distance = 25

Distance axis

§

TiltX = 26

Tilt X axis

§

TiltY = 27

Tilt Y axis

§

ToolWidth = 28

Tool width axis

§

Unknown1D = 29

Unknown axis 1D

§

Unknown1E = 30

Unknown axis 1E

§

Unknown1F = 31

Unknown axis 1F

§

Volume = 32

Volume axis

§

Unknown21 = 33

Unknown axis 21

§

Unknown22 = 34

Unknown axis 22

§

Unknown23 = 35

Unknown axis 23

§

Unknown24 = 36

Unknown axis 24

§

Unknown25 = 37

Unknown axis 25

§

Unknown26 = 38

Unknown axis 26

§

Unknown27 = 39

Unknown axis 27

§

Miscellaneous = 40

Miscellaneous axis

§

Unknown29 = 41

Unknown axis 29

§

Unknown2A = 42

Unknown axis 2A

§

Unknown2B = 43

Unknown axis 2B

§

Unknown2C = 44

Unknown axis 2C

§

Unknown2D = 45

Unknown axis 2D

§

Reserved = 46

Reserved axis

§

MultiTouchSlot = 47

Multi-touch slot axis

§

MultiTouchTouchMajor = 48

Multi-touch touch major axis

§

MultiTouchTouchMinor = 49

Multi-touch touch minor axis

§

MultiTouchWidthMajor = 50

Multi-touch width major axis

§

MultiTouchWidthMinor = 51

Multi-touch width minor axis

§

MultiTouchOrientation = 52

Multi-touch orientation axis

§

MultiTouchPositionX = 53

Multi-touch position X axis

§

MultiTouchPositionY = 54

Multi-touch position Y axis

§

MultiTouchToolType = 55

Multi-touch tool type axis

§

MultiTouchBlobId = 56

Multi-touch blob id axis

§

MultiTouchTrackingId = 57

Multi-touch tracking id axis

§

MultiTouchPressure = 58

Multi-touch pressure axis

§

MultiTouchDistance = 59

Multi-touch distance axis

§

MultiTouchToolX = 60

Multi-touch tool X axis

§

MultiTouchToolY = 61

Multi-touch tool Y axis

§

Unknown3E = 62

Unknown axis 3E

Trait Implementations§

Source§

impl Clone for AbsoluteAxis

Source§

fn clone(&self) -> AbsoluteAxis

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AbsoluteAxis

Source§

impl Debug for AbsoluteAxis

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AbsoluteAxis

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for AbsoluteAxis

Source§

impl EventCode<u8> for AbsoluteAxis

Source§

const COUNT: u8

Code count
Source§

const MAX: u8

Maximum value
Source§

fn iter() -> IntoIter<Self, T>

Return the default event code iterator
Source§

impl Hash for AbsoluteAxis

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoIterator for AbsoluteAxis

Source§

type Item = AbsoluteAxis

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<AbsoluteAxis, u8>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl PartialEq for AbsoluteAxis

Source§

fn eq(&self, other: &AbsoluteAxis) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for AbsoluteAxis

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.