Struct amethyst_input::Bindings[][src]

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

Used for saving and loading input settings.

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 to an action.

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

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]

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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