Skip to main content

InputAxis2Action

Trait InputAxis2Action 

Source
pub trait InputAxis2Action: InputAction<Binding = Axis2Binding> {
    // Required method
    fn bindings(&self) -> Vec<Axis2Binding>;
}
Expand description

An action that reads back a vector no longer than 1, or, bound to Axis2Binding::pointer, how far the pointer moved.

Required if you want a verb with a direction in the plane: a walk, a look, a cursor.

Required Methods§

Source

fn bindings(&self) -> Vec<Axis2Binding>

The controls this action starts out bound to; the one pushed furthest is the one it reads.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§