[][src]Trait buttons::Event

pub trait Event<Handler> {
    fn handle(&self, handler: &mut Handler);
}

A trait for events that can modify input state.

Required methods

fn handle(&self, handler: &mut Handler)

Modify the state of the provided handler (for example, a Mouse or Keyboard).

This should rarely be called directly. Instead, pass this event to the handler's handle_event method.

Loading content...

Implementations on Foreign Types

impl<'a> Event<KeyboardInput<'a, VirtualKeyCode, ModifiersState>> for WinitEvent[src]

impl<'a> Event<KeyboardInput<'a, VirtualKeyCode, ModifiersState>> for WindowEvent[src]

impl<'a> Event<MouseInput<'a, MouseButton, f64>> for WinitEvent[src]

impl<'a> Event<MouseInput<'a, MouseButton, f64>> for WindowEvent[src]

Loading content...

Implementors

Loading content...