docs.rs failed to build lightyear_inputs_leafwing-0.22.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
lightyear_inputs_leafwing-0.26.2
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)