Enum ndk::event::Source [−][src]
#[repr(u32)]
pub enum Source {
Show 15 variants
Unknown,
Keyboard,
Dpad,
Gamepad,
Touchscreen,
Mouse,
Stylus,
BluetoothStylus,
Trackball,
MouseRelative,
Touchpad,
TouchNavigation,
Joystick,
RotaryEncoder,
Any,
}
Expand description
An enum representing the source of an InputEvent
.
See the NDK docs
Variants
Unknown
Keyboard
Dpad
Gamepad
Touchscreen
Mouse
Stylus
BluetoothStylus
Trackball
MouseRelative
Touchpad
TouchNavigation
Joystick
RotaryEncoder
Any
Trait Implementations
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more