magma_input 0.1.0-alpha.2

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
/// Describes the state of a key or button
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Default)]
pub enum ButtonState {
    /// The key/button is currently pressed.
    Pressed,
    /// The key/button was released.
    #[default]
    Released,
}