Trait smithay::backend::input::InputBackend[][src]

pub trait InputBackend: Sized {
Show 18 associated items type EventError: Error; type Device: Device; type KeyboardKeyEvent: KeyboardKeyEvent<Self>; type PointerAxisEvent: PointerAxisEvent<Self>; type PointerButtonEvent: PointerButtonEvent<Self>; type PointerMotionEvent: PointerMotionEvent<Self>; type PointerMotionAbsoluteEvent: PointerMotionAbsoluteEvent<Self>; type TouchDownEvent: TouchDownEvent<Self>; type TouchUpEvent: TouchUpEvent<Self>; type TouchMotionEvent: TouchMotionEvent<Self>; type TouchCancelEvent: TouchCancelEvent<Self>; type TouchFrameEvent: TouchFrameEvent<Self>; type TabletToolAxisEvent: TabletToolAxisEvent<Self>; type TabletToolProximityEvent: TabletToolProximityEvent<Self>; type TabletToolTipEvent: TabletToolTipEvent<Self>; type TabletToolButtonEvent: TabletToolButtonEvent<Self>; type SpecialEvent; fn dispatch_new_events<F>(
        &mut self,
        callback: F
    ) -> Result<(), Self::EventError>
    where
        F: FnMut(InputEvent<Self>)
;
}
Expand description

Trait that describes objects providing a source of input events. All input backends need to implement this and provide the same base guarantees about the precision of given events.

Associated Types

Type representing errors that may be returned when processing events

Type representing input devices

Type representing keyboard events

Type representing axis events on pointer devices

Type representing button events on pointer devices

Type representing motion events of pointer devices

Type representing motion events of pointer devices

Type representing touch events starting

Type representing touch events ending

Type representing touch events from moving

Type representing canceling of touch events

Type representing touch frame events

Type representing axis events on tablet devices

Type representing proximity events on tablet devices

Type representing tip events on tablet devices

Type representing button events on tablet tool devices

Special events that are custom to this backend

Required methods

Processes new events and calls the provided callback.

Implementors