pub struct Pad {
pub pressed: Buttons,
pub just_pressed: Buttons,
pub just_released: Buttons,
}Expand description
The buttons, and what changed at the last poll.
Fields§
§pressed: ButtonsHeld now.
just_pressed: ButtonsWent down at the last poll.
just_released: ButtonsCame up at the last poll.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl BankSafe for Pad
impl Freeze for Pad
impl RefUnwindSafe for Pad
impl Send for Pad
impl Sync for Pad
impl Unpin for Pad
impl UnsafeUnpin for Pad
impl UnwindSafe for Pad
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