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).
InputDeviceBinding
s 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 InputDeviceBinding
s and holds the receiving end of a channel
that an InputDeviceBinding
s send InputEvent
s over.
Required Methods§
Sourcefn get_device_descriptor(&self) -> InputDeviceDescriptor
fn get_device_descriptor(&self) -> InputDeviceDescriptor
Returns information about the input device.
Sourcefn input_event_sender(&self) -> UnboundedSender<InputEvent>
fn input_event_sender(&self) -> UnboundedSender<InputEvent>
Returns the input event stream’s sender.