Struct orbclient::event::ButtonEvent
[−]
[src]
pub struct ButtonEvent {
pub left: bool,
pub middle: bool,
pub right: bool,
}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?
Methods
impl ButtonEvent[src]
fn to_event(&self) -> Event
Convert to an Event
fn from_event(event: Event) -> ButtonEvent
Convert an Event to a ButtonEvent
Trait Implementations
impl Copy for ButtonEvent[src]
impl Clone for ButtonEvent[src]
fn clone(&self) -> ButtonEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more