Function amethyst_input::get_input_axis_simple
source · pub fn get_input_axis_simple<A, B>(
name: &Option<A>,
input: &InputHandler<A, B>
) -> f32where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static,
Expand description
Gets the input axis value from the InputHandler
.
If the name is None, it will return the default value of the axis (0.0).