pub enum InputAction {
Pressed,
Held,
Released,
Idle,
}Expand description
Represents a high-level input action category.
Variants§
Pressed
The key or button was pressed during this frame.
Held
The key or button is currently held down.
Released
The key or button was released during this frame.
Idle
The key or button is currently idle (not pressed).
Trait Implementations§
Source§impl Clone for InputAction
impl Clone for InputAction
Source§fn clone(&self) -> InputAction
fn clone(&self) -> InputAction
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 InputAction
Source§impl Debug for InputAction
impl Debug for InputAction
Source§impl Default for InputAction
impl Default for InputAction
Source§fn default() -> InputAction
fn default() -> InputAction
Returns the “default value” for a type. Read more
impl Eq for InputAction
Source§impl Hash for InputAction
impl Hash for InputAction
Source§impl PartialEq for InputAction
impl PartialEq for InputAction
Source§fn eq(&self, other: &InputAction) -> bool
fn eq(&self, other: &InputAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputAction
Auto Trait Implementations§
impl Freeze for InputAction
impl RefUnwindSafe for InputAction
impl Send for InputAction
impl Sync for InputAction
impl Unpin for InputAction
impl UnsafeUnpin for InputAction
impl UnwindSafe for InputAction
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