[][src]Struct bami::Input

pub struct Input<B: BindingTypes> {
    pub actions: InputManager<B::Action>,
    pub axes: InputManager<B::Axis>,
}

Resource to query input state. Abstracts different common input situations.

Fields

actions: InputManager<B::Action>axes: InputManager<B::Axis>

Trait Implementations

impl<B: BindingTypes> Default for Input<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Input<B> where
    <B as BindingTypes>::Action: RefUnwindSafe,
    <B as BindingTypes>::Axis: RefUnwindSafe

impl<B> Send for Input<B> where
    <B as BindingTypes>::Action: Send,
    <B as BindingTypes>::Axis: Send

impl<B> Sync for Input<B> where
    <B as BindingTypes>::Action: Sync,
    <B as BindingTypes>::Axis: Sync

impl<B> Unpin for Input<B> where
    <B as BindingTypes>::Action: Unpin,
    <B as BindingTypes>::Axis: Unpin

impl<B> UnwindSafe for Input<B> where
    <B as BindingTypes>::Action: UnwindSafe,
    <B as BindingTypes>::Axis: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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

impl<T> TryDefault for T where
    T: Default

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<V, T> VZip<V> for T where
    V: MultiLane<T>,