[][src]Struct amethyst_input::Bindings

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

Used for saving and loading input settings.

An action can either be a single button or a combination of them.

Methods

impl<AX, AC> Bindings<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq
[src]

Creates a new empty Bindings structure

impl<AX, AC> Bindings<AX, AC> where
    AX: Hash + Eq + Clone,
    AC: Hash + Eq + Clone
[src]

Assign an axis to an ID value

This will insert a new axis if no entry for this id exists. If one does exist this will replace the axis at that id and return it.

Removes an axis, this will return the removed axis if successful.

Returns a reference to an axis.

Gets a list of all axes

Add a button or button combination to an action.

This will insert a new binding between this action and the button(s).

Removes an action binding that was assigned previously.

Returns an action's bindings.

Gets a list of all action bindings

Trait Implementations

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

impl<AX: Clone, AC: Clone> Clone for Bindings<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq
[src]

Performs copy-assignment from source. Read more

impl<AX, AC> Serialize for Bindings<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq,
    AX: Serialize,
    AC: Serialize
[src]

impl<'de, AX, AC> Deserialize<'de> for Bindings<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq,
    AX: Deserialize<'de>,
    AC: Deserialize<'de>, 
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

Should always be Self

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

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

impl<T> TryDefault for T where
    T: Default

Calls try_default and panics on an error case.

impl<T> Any for T where
    T: Any

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

impl<T> Erased for T

impl<T> Erased for T

impl<T> Config for T where
    T: Deserialize<'a> + Serialize + Default
[src]

impl<T> SetParameter for T

Sets value as a parameter of self.