Trait input::ButtonEvent

source ·
pub trait ButtonEvent: Sized {
    fn from_button_args(args: ButtonArgs, old_event: &Self) -> Option<Self>;
    fn button<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(ButtonArgs) -> U
; fn button_args(&self) -> Option<ButtonArgs> { ... } }
Expand description

Changed button state.

Required Methods§

Creates a button event.

Calls closure if this is a button event.

Provided Methods§

Returns button arguments.

Implementors§