Struct input::controller::ControllerAxisArgs
[−]
[src]
pub struct ControllerAxisArgs { pub id: i32, pub axis: u8, pub position: f64, }
Components of a controller axis move event. Not guaranteed consistent across backends.
Fields
id | Which controller moved. |
axis | The axis that moved. |
position | Position of the controller. Usually [-1.0, 1.0], though backends may use a different range for various devices. |
Methods
impl ControllerAxisArgs
fn new(id: i32, axis: u8, position: f64) -> Self
[−]
Create a new ControllerAxisArgs object. Intended for use by backends when emitting events.