Trait input::event::EventTrait[][src]

pub trait EventTrait: Context {
    fn into_event(self) -> Event
    where
        Self: Sized
, { ... }
fn device(&self) -> Device { ... } }
Expand description

Common functions all (Sub-)Events implement.

Provided methods

Convert into a general Event again

Return the device associated with this event.

For device added/removed events this is the device added or removed. For all other device events, this is the device that generated the event.

Implementors