Module to handle inputs that are defined using the leafwing_input_manager crate
Adding leafwing inputs
You first need to create Inputs that are defined using the leafwing_input_manager crate.
(see the documentation of the crate for more information)
In particular your inputs should implement the Actionlike trait.
# use App;
# use Reflect;
# use ;
use Actionlike;
use InputPlugin;
let mut app = new;
app.add_plugins;
Usage
The networking of inputs is completely handled for you. You just need to add the InputPlugin to your app.
Make sure that all your systems that depend on user inputs are added to the FixedUpdate Schedule.
Currently, global inputs (that are stored in a Resource instead of being attached to a specific Entity are not supported)