Function pointer_fusion::source ·
pub fn pointer_fusion( pixel_ratio: f32 ) -> (UnboundedSender<InputEvent>, impl Stream<Item = PointerEvent>)
Provides a stream of PointerEvent fused from InputEvent::MouseEvent and InputEvent::TouchEvent.
pixel_ratio- The device pixel ratio used to convert from logical to physical coordinates.
Returns a tuple of [UnboundedSender] to send InputEvents to and a [Stream] to read fused PointerEvents from.