Skip to main content

get_axis

Function get_axis 

Source
pub fn get_axis(left: KeyCode, right: KeyCode) -> f32
Expand description

Returns -1.0 if only left is held, 1.0 if only right is held, otherwise 0.0.