input_manager 0.1.0

Plumbing to allow for different inputs to be abstracted and used together (eg keyboard and gamepad). Follows the Unity paradigm of Axes and Buttons
Documentation
#[derive(Clone)]
pub struct ButtonChange(pub bool);
#[derive(Clone)]
pub enum AxisChange {
    Position(f64),
    Velocity(Direction),
    Falling(Direction),
}

impl Into<f64> for Direction {
    fn into(self) -> f64 {
        match self {
            Direction::Up => 1.0,
            Direction::Down => -1.0,
        }
    }
}

#[derive(Debug, PartialEq, Clone)]
pub enum Direction {
    Up,
    Down,
}