Skip to main content

get_input_axis_simple

Function get_input_axis_simple 

Source
pub fn get_input_axis_simple<T: BindingTypes>(
    name: &Option<T::Axis>,
    input: &InputHandler<T>,
) -> f32
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).