[−][src]Enum human::Input
Input event from any human interface device
Variants (Non-exhaustive)
Text(char)
User inputted text.
A key on the keyboard was pressed or released.
Pointer button was pressed or released (Left click, Tap).
The pointer has left the window.
Request to shift the viewport in the X dimension (relative coordinates).
Request to shift the viewport in the Y dimension (relative coordinates).
PointerX(f32)
The pointer was moved in the X dimension (absolute coordinates).
PointerY(f32)
The pointer was moved in the Y dimension (absolute coordinates).
Touch(bool)
Touchscreen was touched with one finger.
Pinch(bool)
Touchscreen was touched with two fingers.
PinchW(f32)
Pinch width has changed.
PinchH(f32)
Pinch height has changed.
PinchZ(f32)
Rotation Amount
Controller(Controller)
New controller plugged in.
Implementations
impl Input
[src]
pub fn listener() -> impl Future<Output = Input>
[src]
Get a future that returns input events. You may only call this once, because multiple threads reading the same input wouldn't logically work.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Input
[src]
impl Send for Input
[src]
impl Sync for Input
[src]
impl Unpin for Input
[src]
impl UnwindSafe for Input
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,