#[repr(u32)]pub enum Source {
Show 17 variants
Unknown = 0,
Keyboard = 257,
Dpad = 513,
Gamepad = 1_025,
Touchscreen = 4_098,
Mouse = 8_194,
Stylus = 16_386,
BluetoothStylus = 49_154,
Trackball = 65_540,
MouseRelative = 131_076,
Touchpad = 1_048_584,
TouchNavigation = 2_097_152,
Joystick = 16_777_232,
Hdmi = 33_554_433,
Sensor = 67_108_864,
RotaryEncoder = 4_194_304,
Any = 4_294_967_040,
}
Expand description
An enum representing the source of an InputEvent
.
See the NDK docs
Variants§
Unknown = 0
Keyboard = 257
Dpad = 513
Gamepad = 1_025
Touchscreen = 4_098
Mouse = 8_194
Stylus = 16_386
BluetoothStylus = 49_154
Trackball = 65_540
MouseRelative = 131_076
Touchpad = 1_048_584
Joystick = 16_777_232
Hdmi = 33_554_433
Sensor = 67_108_864
RotaryEncoder = 4_194_304
Any = 4_294_967_040
Trait Implementations§
source§impl PartialEq for Source
impl PartialEq for Source
source§impl TryFrom<u32> for Source
impl TryFrom<u32> for Source
§type Error = TryFromPrimitiveError<Source>
type Error = TryFromPrimitiveError<Source>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Source
impl TryFromPrimitive for Source
impl Copy for Source
impl Eq for Source
impl StructuralEq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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