Function ggez::mouse::get_position[][src]

pub fn get_position(ctx: &Context) -> GameResult<Point2>

Get the current position of the mouse cursor, in pixels. Complement to set_position(). Uses strictly window-only coordinates.