mouse_position 0.1.4

Get the mouse position on Linux, Windows and MacOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Contains the used structs and enums to get the mouse position.
//! 
// Position struct, which contains x and y coordinates.
pub struct Position {
    pub x: i32,
    pub y: i32
}

/// Mouse Position enum, which can either be a position or an error.
pub enum Mouse {
    Position { x: i32, y: i32 },
    Error
}