#[repr(u32)]pub enum Axis {
Show 45 variants
X = 0,
Y = 1,
Pressure = 2,
Size = 3,
TouchMajor = 4,
TouchMinor = 5,
ToolMajor = 6,
ToolMinor = 7,
Orientation = 8,
Vscroll = 9,
Hscroll = 10,
Z = 11,
Rx = 12,
Ry = 13,
Rz = 14,
HatX = 15,
HatY = 16,
Ltrigger = 17,
Rtrigger = 18,
Throttle = 19,
Rudder = 20,
Wheel = 21,
Gas = 22,
Brake = 23,
Distance = 24,
Tilt = 25,
Scroll = 26,
RelativeX = 27,
RelativeY = 28,
Generic1 = 32,
Generic2 = 33,
Generic3 = 34,
Generic4 = 35,
Generic5 = 36,
Generic6 = 37,
Generic7 = 38,
Generic8 = 39,
Generic9 = 40,
Generic10 = 41,
Generic11 = 42,
Generic12 = 43,
Generic13 = 44,
Generic14 = 45,
Generic15 = 46,
Generic16 = 47,
}
Expand description
An axis of a motion event.
See the NDK docs
Variants§
X = 0
Y = 1
Pressure = 2
Size = 3
TouchMajor = 4
TouchMinor = 5
ToolMajor = 6
ToolMinor = 7
Orientation = 8
Vscroll = 9
Hscroll = 10
Z = 11
Rx = 12
Ry = 13
Rz = 14
HatX = 15
HatY = 16
Ltrigger = 17
Rtrigger = 18
Throttle = 19
Rudder = 20
Wheel = 21
Gas = 22
Brake = 23
Distance = 24
Tilt = 25
Scroll = 26
RelativeX = 27
RelativeY = 28
Generic1 = 32
Generic2 = 33
Generic3 = 34
Generic4 = 35
Generic5 = 36
Generic6 = 37
Generic7 = 38
Generic8 = 39
Generic9 = 40
Generic10 = 41
Generic11 = 42
Generic12 = 43
Generic13 = 44
Generic14 = 45
Generic15 = 46
Generic16 = 47
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnwindSafe for Axis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more