Struct orbclient::event::ButtonEvent
source · Expand description
A event for clicking the mouse
Fields§
§left: bool
Was the left button pressed?
middle: bool
Was the middle button pressed?
right: bool
Was the right button pressed?
Implementations§
source§impl ButtonEvent
impl ButtonEvent
sourcepub fn from_event(event: Event) -> ButtonEvent
pub fn from_event(event: Event) -> ButtonEvent
Convert an Event
to a ButtonEvent
Trait Implementations§
source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
source§fn clone(&self) -> ButtonEvent
fn clone(&self) -> ButtonEvent
Returns a copy 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 more