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 EventError: Error
type EventError: Error
Type representing errors that may be returned when processing events
type KeyboardKeyEvent: KeyboardKeyEvent<Self>
type KeyboardKeyEvent: KeyboardKeyEvent<Self>
Type representing keyboard events
type PointerAxisEvent: PointerAxisEvent<Self>
type PointerAxisEvent: PointerAxisEvent<Self>
Type representing axis events on pointer devices
type PointerButtonEvent: PointerButtonEvent<Self>
type PointerButtonEvent: PointerButtonEvent<Self>
Type representing button events on pointer devices
type PointerMotionEvent: PointerMotionEvent<Self>
type PointerMotionEvent: PointerMotionEvent<Self>
Type representing motion events of pointer devices
Type representing motion events of pointer devices
type TouchDownEvent: TouchDownEvent<Self>
type TouchDownEvent: TouchDownEvent<Self>
Type representing touch events starting
type TouchUpEvent: TouchUpEvent<Self>
type TouchUpEvent: TouchUpEvent<Self>
Type representing touch events ending
type TouchMotionEvent: TouchMotionEvent<Self>
type TouchMotionEvent: TouchMotionEvent<Self>
Type representing touch events from moving
type TouchCancelEvent: TouchCancelEvent<Self>
type TouchCancelEvent: TouchCancelEvent<Self>
Type representing canceling of touch events
type TouchFrameEvent: TouchFrameEvent<Self>
type TouchFrameEvent: TouchFrameEvent<Self>
Type representing touch frame events
type TabletToolAxisEvent: TabletToolAxisEvent<Self>
type TabletToolAxisEvent: TabletToolAxisEvent<Self>
Type representing axis events on tablet devices
Type representing proximity events on tablet devices
type TabletToolTipEvent: TabletToolTipEvent<Self>
type TabletToolTipEvent: TabletToolTipEvent<Self>
Type representing tip events on tablet devices
type TabletToolButtonEvent: TabletToolButtonEvent<Self>
type TabletToolButtonEvent: TabletToolButtonEvent<Self>
Type representing button events on tablet tool devices
type SpecialEvent
type SpecialEvent
Special events that are custom to this backend
Required methods
fn dispatch_new_events<F>(
&mut self,
callback: F
) -> Result<(), Self::EventError> where
F: FnMut(InputEvent<Self>),
fn dispatch_new_events<F>(
&mut self,
callback: F
) -> Result<(), Self::EventError> where
F: FnMut(InputEvent<Self>),
Processes new events and calls the provided callback.