Module leafwing_input_manager::systems
source · Expand description
The systems that power each InputManagerPlugin
.
Functions
- Release all inputs if the
ToggleActions<A>
resource exists and itsenabled
field is false. - Release all inputs when an
InputMap<A>
is removed to prevent them from being held forever. - Uses the value of
ToggleActions<A>
to determine if input manager systems of typeA
should run. - Advances actions timer.
- When a button with a component of type
A
is clicked, press the corresponding action in theActionState