[−][src]Trait input::ButtonEvent
Changed button state.
Required methods
fn from_button_args(args: ButtonArgs, old_event: &Self) -> Option<Self>
Creates a button event.
Preserves time stamp from original input event, if any.
fn button<U, F>(&self, f: F) -> Option<U> where
F: FnMut(ButtonArgs) -> U,
F: FnMut(ButtonArgs) -> U,
Calls closure if this is a button event.
Provided methods
fn button_args(&self) -> Option<ButtonArgs>
Returns button arguments.
Implementors
impl ButtonEvent for Event
[src]
fn from_button_args(args: ButtonArgs, old_event: &Self) -> Option<Self>
[src]
fn button<U, F>(&self, f: F) -> Option<U> where
F: FnMut(ButtonArgs) -> U,
[src]
F: FnMut(ButtonArgs) -> U,