pub trait InputDeviceBinding: Send {
    // Required methods
    fn get_device_descriptor(&self) -> InputDeviceDescriptor;
    fn input_event_sender(&self) -> UnboundedSender<InputEvent>;
}
Expand description

An InputDeviceBinding represents a binding to an input device (e.g., a mouse).

InputDeviceBindings expose information about the bound device. For example, a [MouseBinding] exposes the ranges of possible x and y values the device can generate.

An [InputPipeline] manages InputDeviceBindings and holds the receiving end of a channel that an InputDeviceBindings send InputEvents over.

Required Methods§

source

fn get_device_descriptor(&self) -> InputDeviceDescriptor

Returns information about the input device.

source

fn input_event_sender(&self) -> UnboundedSender<InputEvent>

Returns the input event stream’s sender.

Implementors§