Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Merge #1232
Browse files Browse the repository at this point in the history
1232: Add some docs for actions. r=Xaeroxe a=derekdreery

Explains the structure of `Bindings::action`.

Co-authored-by: Richard Dodd <richard.o.dodd@gmail.com>
Co-authored-by: Richard Dodd (dodj) <richard.o.dodd@gmail.com>
  • Loading branch information
bors[bot] and derekdreery committed Dec 13, 2018
2 parents 9287198 + 0d0a507 commit a510bc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions amethyst_input/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ where
AC: Hash + Eq,
{
pub(super) axes: HashMap<AX, Axis>,
/// The inner array here is for button combinations, the other is for different possibilities.
///
/// So for example if you want to quit by either "Esc" or "Ctrl+q" you would have
/// `[[Esc], [Ctrl, Q]]`.
pub(super) actions: HashMap<AC, SmallVec<[SmallVec<[Button; 2]>; 4]>>,
}

Expand Down

0 comments on commit a510bc9

Please sign in to comment.