/// Struct that represents the state of an axis on a joystick.
#[derive(Clone, Copy, Debug)]pubstructAxisState{pubprevious_direction:f32,
pubcurrent_direction:f32}implDefault forAxisState{/// Returns a default `AxisState` with `previous_direction` and `current_direction` set to 0.0.
fndefault()->Self{Self{
previous_direction:0.0,
current_direction:0.0}}}