#[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§
source§impl PartialEq for Axis
impl PartialEq for Axis
source§impl TryFrom<u32> for Axis
impl TryFrom<u32> for Axis
§type Error = TryFromPrimitiveError<Axis>
type Error = TryFromPrimitiveError<Axis>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Axis
impl TryFromPrimitive for Axis
impl Copy for Axis
impl Eq for Axis
impl StructuralEq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
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