pub trait PointerButtonEvent<B: InputBackend>: Event<B> {
// Required methods
fn button(&self) -> MouseButton;
fn state(&self) -> ButtonState;
}
Expand description
Common methods pointer event generated by pressed buttons do implement
Required Methods§
Pressed button of the event
Sourcefn state(&self) -> ButtonState
fn state(&self) -> ButtonState
State of the button