Skip to main content

InputButtonAction

Derive Macro InputButtonAction 

Source
#[derive(InputButtonAction)]
Expand description

Derives the engine’s view of a vocabulary of actions whose value is held or not: its values, and the names a rebind of one is kept under.

The bindings themselves are declared by hand in the InputButtonAction trait, which the derived code calls; a variant with fields fails to compile, because an action is a verb and its parameters belong to the game’s own state.