#[non_exhaustive]pub enum Input {
}Expand description
Input event from any human interface device
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.
Text(char)
User inputted text.
Key(Mod, Key, bool)
A key on the keyboard was pressed or released.
Click(Mod, Btn, bool)
Pointer button was pressed or released (Left click, Tap).
PointerLeave
The pointer has left the window.
ScrollX(Mod, f32)
Request to shift the viewport in the X dimension (relative coordinates).
ScrollY(Mod, f32)
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§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl !RefUnwindSafe for Input
impl !Send for Input
impl !Sync for Input
impl Unpin for Input
impl !UnwindSafe for Input
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