magma_input 0.1.0-alpha

Part of the Magma-API, which is the API of the Magma3D game engine. This is responsable for handling user input.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Mouse buttons
#[derive(Clone, Copy, PartialEq, PartialOrd, Ord, Eq, Hash, Debug)]
pub enum MouseButton {
    Left,
    Right,
    Middle,
    Forward,
    Back,
    Other(u16),
}

/// Indicates the unit of a mouse scroll event.
pub enum MouseScrollUnit {
    /// The delta of the [`MouseScrollInput`](crate::input_event::MouseScrollInput) event corresponds to the amount of lines or rows to scroll.
    Line,
    /// The delta of the [`MouseScrollInput`](crate::input_event::MouseScrollInput) event corresponds to the amount of pixels to scroll.
    Pixel,
}