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 itsenabledfield 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 typeAshould run. - Advances actions timer.
- Fetches all of the relevant [
ButtonInput] resources to updateActionStateaccording to theInputMap. - When a button with a component of type
Ais clicked, press the corresponding action in theActionState