pub enum InputAction {
Idle,
Pressed,
Hold,
Released,
}
Variants§
Implementations§
Source§impl InputAction
impl InputAction
pub fn change(self, hold: bool) -> Self
pub fn update(self) -> Self
pub fn is_idle(self) -> bool
pub fn is_pressed(self) -> bool
pub fn is_hold(self) -> bool
pub fn is_released(self) -> bool
pub fn is_up(self) -> bool
pub fn is_down(self) -> bool
pub fn is_changing(self) -> bool
pub fn is_continuing(self) -> bool
pub fn to_scalar(self, falsy: f32, truthy: f32) -> f32
Trait Implementations§
Source§impl Clone for InputAction
impl Clone for InputAction
Source§fn clone(&self) -> InputAction
fn clone(&self) -> InputAction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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
Source§impl PartialEq for InputAction
impl PartialEq for InputAction
impl Copy for InputAction
impl Eq for InputAction
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 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