pub enum InputButtonState {
None,
Pressed(f32),
Released,
Scroll(f32),
}Expand description
Tracks input button transitions seen since the previous frame.
Variants§
None
No interaction was registered.
Pressed(f32)
The button was pressed this frame, storing the press timestamp.
Released
The button was released this frame.
Scroll(f32)
The scroll wheel moved by the given amount.
Trait Implementations§
Source§impl Clone for InputButtonState
impl Clone for InputButtonState
Source§fn clone(&self) -> InputButtonState
fn clone(&self) -> InputButtonState
Returns a duplicate 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 InputButtonState
impl Debug for InputButtonState
impl Copy for InputButtonState
Auto Trait Implementations§
impl Freeze for InputButtonState
impl RefUnwindSafe for InputButtonState
impl Send for InputButtonState
impl Sync for InputButtonState
impl Unpin for InputButtonState
impl UnwindSafe for InputButtonState
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