Skip to main content

InputRegistryExt

Trait InputRegistryExt 

Source
pub trait InputRegistryExt {
    // Required method
    fn register_input_action<A>(self) -> Self
       where A: InputAction;
}
Available on crate feature input_bei and (crate features input_bei or input_native or leafwing) only.

Required Methods§

Source

fn register_input_action<A>(self) -> Self
where A: InputAction,

Registers a new input action type and returns its kind.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl InputRegistryExt for &mut App

Source§

fn register_input_action<A>(self) -> &mut App
where A: InputAction,

Implementors§