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,
    AC: Hash + Eq
[src]

Create a new input bundle with no bindings

Use the provided bindings with the InputHandler

Load bindings from file

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<AX, AC> Send for InputBundle<AX, AC> where
    AC: Send,
    AX: Send

impl<AX, AC> Sync for InputBundle<AX, AC> where
    AC: Sync,
    AX: Sync