[][src]Struct amethyst_input::InputBundle

pub struct InputBundle<T: BindingTypes> { /* fields omitted */ }

Bundle for adding the InputHandler.

This also adds the Winit EventHandler and the InputEvent<T> EventHandler where T::Action is the type for Actions you have assigned here.

Type parameters

T: The type used to identify input binding types.

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

Errors

No errors returned from this bundle.

Methods

impl<T: BindingTypes> InputBundle<T>[src]

pub fn new() -> Self[src]

Create a new input bundle with no bindings

pub fn with_bindings(self, bindings: Bindings<T>) -> Self[src]

Use the provided bindings with the InputHandler

pub fn with_bindings_from_file<P: AsRef<Path>>(
    self,
    file: P
) -> Result<Self, BindingsFileError<T>> where
    Bindings<T>: Config
[src]

Load bindings from file

Trait Implementations

impl<T: BindingTypes> Default for InputBundle<T>[src]

impl<T: Debug + BindingTypes> Debug for InputBundle<T>[src]

impl<'a, 'b, T: BindingTypes> SystemBundle<'a, 'b> for InputBundle<T>[src]

Auto Trait Implementations

impl<T> Send for InputBundle<T> where
    <T as BindingTypes>::Action: Send,
    <T as BindingTypes>::Axis: Send

impl<T> Unpin for InputBundle<T> where
    <T as BindingTypes>::Action: Unpin,
    <T as BindingTypes>::Axis: Unpin

impl<T> Sync for InputBundle<T> where
    <T as BindingTypes>::Action: Sync,
    <T as BindingTypes>::Axis: Sync

impl<T> UnwindSafe for InputBundle<T> where
    <T as BindingTypes>::Action: UnwindSafe,
    <T as BindingTypes>::Axis: UnwindSafe

impl<T> RefUnwindSafe for InputBundle<T> where
    <T as BindingTypes>::Action: RefUnwindSafe,
    <T as BindingTypes>::Axis: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Any for T where
    T: Any

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> TryDefault for T where
    T: Default

impl<T> Event for T where
    T: Send + Sync + 'static,