pub struct ActionInput<'a, const ACTIONS: usize> { /* private fields */ }Expand description
Per-tick logical action view over a pair of pad samples.
Implementations§
Source§impl<const ACTIONS: usize> ActionInput<'_, ACTIONS>
impl<const ACTIONS: usize> ActionInput<'_, ACTIONS>
Sourcepub fn just_pressed(self, action: usize) -> bool
pub fn just_pressed(self, action: usize) -> bool
Whether an action transitioned from released to pressed this tick.
Sourcepub fn just_released(self, action: usize) -> bool
pub fn just_released(self, action: usize) -> bool
Whether an action transitioned from pressed to released this tick.
Trait Implementations§
Source§impl<'a, const ACTIONS: usize> Clone for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> Clone for ActionInput<'a, ACTIONS>
Source§fn clone(&self) -> ActionInput<'a, ACTIONS>
fn clone(&self) -> ActionInput<'a, ACTIONS>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, const ACTIONS: usize> Debug for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> Debug for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> Copy for ActionInput<'a, ACTIONS>
Auto Trait Implementations§
impl<'a, const ACTIONS: usize> Freeze for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> RefUnwindSafe for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> Send for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> Sync for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> Unpin for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> UnsafeUnpin for ActionInput<'a, ACTIONS>
impl<'a, const ACTIONS: usize> UnwindSafe for ActionInput<'a, ACTIONS>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)