pub async fn get_device_binding(
device_type: InputDeviceType,
device_proxy: InputDeviceProxy,
device_id: u32,
input_event_sender: UnboundedSender<InputEvent>,
device_node: Node,
metrics_logger: MetricsLogger,
) -> Result<Box<dyn InputDeviceBinding>, Error>Expand description
Returns a new InputDeviceBinding of the given device type.
ยงParameters
device_type: The type of the input device.device_proxy: The device proxy which is used to get input reports.device_id: The id of the connected input device.input_event_sender: The channel to send generated InputEvents to.