pub fn new(
        screen_size: Size,
        event_scale: f32,
        listeners: Arc<Mutex<Vec<PointerCaptureListenerHackProxy>>>,
    ) -> MousePointerHack {
        MousePointerHack {
            current_position: Position { x: 0.0, y: 0.0 },
            screen_size,
            event_scale,
            listeners,
        }
    }
/// Creates a new [`MousePointerHack`] that sends pointer events to Ermine.
///
/// # Parameters
/// - `screen_size`: The maximum position to cap mouse movement at.
/// - `event_scale`: The scale to apply to pointer events before sending them to listeners.
/// - `listeners`: The listeners that will get notified of mouse events.
Creates a new [`MousePointerHack`] that sends pointer events to Ermine.
Creates a new [ ` MousePointerHack ` ] that sends pointer events to Ermine .
pub fn new(
        screen_size: Size,
        event_scale: f32,
        listeners: Arc<Mutex<Vec<PointerCaptureListenerHackProxy>>>,
    ) -> MousePointerHack {
        MousePointerHack {
            current_position: Position { x: 0.0, y: 0.0 },
            screen_size,
            event_scale,
            listeners,
        }
    }
pub fn new ( screen_size : Size , event_scale : f32 , listeners : Arc < Mutex < Vec < PointerCaptureListenerHackProxy > > > , ) -> MousePointerHack { MousePointerHack { current_position : Position { x : 0.0 , y : 0.0 } , screen_size , event_scale , listeners , } }
Creates a new [`MousePointerHack`] that sends pointer events to Ermine.
Creates a new [ ` MousePointerHack ` ] that sends pointer events to Ermine .
screen_size
Size
event_scale
f32
listeners
Arc<Mutex<Vec<PointerCaptureListenerHackProxy>>>
screen_size
Size
The maximum position to cap mouse movement at.
The maximum position to cap mouse movement at .
event_scale
f32
The scale to apply to pointer events before sending them to listeners.
The scale to apply to pointer events before sending them to listeners .
listeners
Arc<Mutex<Vec<PointerCaptureListenerHackProxy>>>
The listeners that will get notified of mouse events.
The listeners that will get notified of mouse events .