Struct amethyst_input::InputBundle [] [src]

pub struct InputBundle<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq
{ /* fields omitted */ }

Bundle for adding the InputHandler.

This also adds the Winit EventHandler and the InputEvent EventHandler where AC is the type for Actions you have assigned here.

Type parameters

AX: The type used to identify input axes. AC: The type used to identify input actions.

String is appropriate for either of these if you don't know what to use.

Errors

No errors returned from this bundle.

Methods

impl<AX, AC> InputBundle<AX, AC> where
    AX: Hash + Eq + DeserializeOwned + Serialize + Default,
    AC: Hash + Eq + DeserializeOwned + Serialize + Default
[src]

[src]

Create a new input bundle with no bindings

[src]

Use the provided bindings with the InputHandler

[src]

Load bindings from file

Trait Implementations

impl<AX: Default, AC: Default> Default for InputBundle<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq
[src]

[src]

Returns the "default value" for a type. Read more

impl<'a, 'b, AX, AC> ECSBundle<'a, 'b> for InputBundle<AX, AC> where
    AX: Hash + Eq + Clone + Send + Sync + 'static,
    AC: Hash + Eq + Clone + Send + Sync + 'static, 
[src]

[src]

Build and add ECS resources, register components, add systems etc to the Application.