[][src]Function winconsole::window::get_cursor_position

pub fn get_cursor_position() -> WinResult<Vector2<i32>>

Returns the screen position of the cursor.

Examples

let position = window::get_cursor_position().unwrap();
println!("Cursor position: {:?}", position);

Errors