Enum smithay::backend::input::InputEvent[][src]

pub enum InputEvent<B: InputBackend> {
Show 17 variants DeviceAdded { device: B::Device, }, DeviceRemoved { device: B::Device, }, Keyboard { event: B::KeyboardKeyEvent, }, PointerMotion { event: B::PointerMotionEvent, }, PointerMotionAbsolute { event: B::PointerMotionAbsoluteEvent, }, PointerButton { event: B::PointerButtonEvent, }, PointerAxis { event: B::PointerAxisEvent, }, TouchDown { event: B::TouchDownEvent, }, TouchMotion { event: B::TouchMotionEvent, }, TouchUp { event: B::TouchUpEvent, }, TouchCancel { event: B::TouchCancelEvent, }, TouchFrame { event: B::TouchFrameEvent, }, TabletToolAxis { event: B::TabletToolAxisEvent, }, TabletToolProximity { event: B::TabletToolProximityEvent, }, TabletToolTip { event: B::TabletToolTipEvent, }, TabletToolButton { event: B::TabletToolButtonEvent, }, Special(B::SpecialEvent),
}
Expand description

Different events that can be generated by an input backend

Variants

DeviceAdded

An input device was connected

Fields of DeviceAdded

device: B::Device

The added device

DeviceRemoved

An input device was disconnected

Fields of DeviceRemoved

device: B::Device

The removed device

Keyboard

A keyboard event occurred

Fields of Keyboard

event: B::KeyboardKeyEvent

The keyboard event

PointerMotion

A relative pointer motion occurred

Fields of PointerMotion

event: B::PointerMotionEvent

The pointer motion event

PointerMotionAbsolute

An absolute pointer motion occurs

Fields of PointerMotionAbsolute

event: B::PointerMotionAbsoluteEvent

The absolute pointer motion event

PointerButton

A pointer button was pressed or released

Fields of PointerButton

event: B::PointerButtonEvent

The pointer button event

PointerAxis

A pointer action occurred while scrolling on an axis

Fields of PointerAxis

event: B::PointerAxisEvent

The pointer axis event

TouchDown

A new touchpoint appeared

Fields of TouchDown

event: B::TouchDownEvent

The touch down event

TouchMotion

A touchpoint moved

Fields of TouchMotion

event: B::TouchMotionEvent

The touch motion event

TouchUp

A touchpoint was removed

Fields of TouchUp

event: B::TouchUpEvent

The touch up event

TouchCancel

A touch sequence was cancelled

Fields of TouchCancel

event: B::TouchCancelEvent

The touch cancel event

TouchFrame

A touch frame was emitted

A set of two events received on the same seat between two frames should be interpreted as an atomic event.

Fields of TouchFrame

event: B::TouchFrameEvent

The touch frame event

TabletToolAxis

A tablet tool axis was emitted

Fields of TabletToolAxis

event: B::TabletToolAxisEvent

The tablet tool axis event

TabletToolProximity

A tablet tool proximity was emitted

Fields of TabletToolProximity

event: B::TabletToolProximityEvent

The tablet tool proximity event

TabletToolTip

A tablet tool tip event was emitted

Fields of TabletToolTip

event: B::TabletToolTipEvent

The tablet tool axis event

TabletToolButton

A tablet tool button was pressed or released

Fields of TabletToolButton

event: B::TabletToolButtonEvent

The pointer button event

Special(B::SpecialEvent)

Special event specific of this backend

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.