pub fn state_from_pointer_event(
e: &PointerEvent,
scale_factor: f64,
) -> PointerStateExpand description
Build a PointerState from a DOM web_sys::PointerEvent.
- Coordinates use
clientX/Yscaled byscale_factorto approximate physical pixels. - Uses the event’s reported
pressure,tangentialPressure,width/height, and stylus orientation where available (preferringaltitudeAngle/azimuthAngle, otherwise falling back totiltX/tiltY). - Pointer Events
twistis not currently mapped (there is no corresponding field inui-events).