pub enum InputState {
Pressed,
Down,
Released,
}Expand description
Input state of a mouse/keyboard button
Variants§
Pressed
The button has just been pressed.
Down
The button is being held down.
Released
The button has just been released.
Trait Implementations§
Source§impl Clone for InputState
impl Clone for InputState
Source§fn clone(&self) -> InputState
fn clone(&self) -> InputState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InputState
Source§impl Debug for InputState
impl Debug for InputState
impl Eq for InputState
Source§impl PartialEq for InputState
impl PartialEq for InputState
Source§fn eq(&self, other: &InputState) -> bool
fn eq(&self, other: &InputState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputState
Auto Trait Implementations§
impl Freeze for InputState
impl RefUnwindSafe for InputState
impl Send for InputState
impl Sync for InputState
impl Unpin for InputState
impl UnsafeUnpin for InputState
impl UnwindSafe for InputState
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