pub struct UiButton {
pub down: bool,
pub pressed: bool,
pub released: bool,
}Expand description
Button snapshot, retaining quick taps with both edges between fixed ticks.
Fields§
§down: boolCurrently held.
pressed: boolPressed since the previous consumed tick.
released: boolReleased since the previous consumed tick.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiButton
impl RefUnwindSafe for UiButton
impl Send for UiButton
impl Sync for UiButton
impl Unpin for UiButton
impl UnsafeUnpin for UiButton
impl UnwindSafe for UiButton
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