Function ggez::input::mouse::set_position

source ·
pub fn set_position<P>(ctx: &mut Context, point: P) -> GameResultwhere
    P: Into<Point2<f32>>,
Expand description

Set the current position of the mouse cursor, in pixels. Uses strictly window-only coordinates.

Errors

Will return GameError::WindowError if platform doesn’t support this.