Struct olc_pixel_game_engine::HWButton
source · #[repr(C)]pub struct HWButton {
pub pressed: bool,
pub released: bool,
pub held: bool,
}
Expand description
Mirror of olc::HWButton
. Represents the button state, either keyboard or mouse.
Fields§
§pressed: bool
Set once during the frame the event occurs.
released: bool
Set once during the frame the event occurs.
held: bool
Set true for all frames between pressed and released events.
Trait Implementations§
source§impl PartialEq<HWButton> for HWButton
impl PartialEq<HWButton> for HWButton
impl Copy for HWButton
impl StructuralPartialEq for HWButton
Auto Trait Implementations§
impl RefUnwindSafe for HWButton
impl Send for HWButton
impl Sync for HWButton
impl Unpin for HWButton
impl UnwindSafe for HWButton
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