Enum android_activity::input::Axis
source · #[non_exhaustive]#[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
§Android Extensible Enum
This is a runtime extensible enum and
should be handled similar to a #[non_exhaustive]
enum to maintain
forwards compatibility.
This implements Into<u32>
and From<u32>
for converting to/from Android
SDK integer values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 FromPrimitive for Axis
impl FromPrimitive for Axis
source§impl PartialEq for Axis
impl PartialEq for Axis
impl Copy for Axis
impl Eq 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