lotus_engine 0.3.2

Lotus is a game engine with the main focus of being easy-to-use and straight forward on developing 2D games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Struct that represents the state of an axis on a joystick.
#[derive(Clone, Copy, Debug)]
pub struct AxisState {
    pub previous_direction: f32,
    pub current_direction: f32
}

impl Default for AxisState {
    /// Returns a default `AxisState` with `previous_direction` and `current_direction` set to 0.0.
    fn default() -> Self {
        Self {
            previous_direction: 0.0,
            current_direction: 0.0
        }
    }
}