Cargo Features
[dependencies]
leafwing-input-manager = { version = "0.13.3", default-features = false, features = ["asset", "ui", "no_ui_priority", "egui"] }
- default = asset, ui
-
These default features are set whenever
leafwing-input-manager
is added without
somewhere in the dependency tree.default-features = false - asset default
-
Allow using the
InputMap
asbevy::asset::Asset
.Enables bevy_asset of bevy
- ui default
-
Add support for 'bevy::ui' integration:
- Allow 'bevy::ui' to take priority over actions when processing inputs.
- Automatic process clicks on 'bevy::ui' buttons that attached
ActionStateDriver
to drive corresponding actions. - Allow using
MockUIInteraction
for 'bevy::ui' input mocking.
Affects
input_mocking::MockUIInteraction
,systems::update_action_state_from_interaction
… - no_ui_priority
-
Disable the priority of 'bevy::ui' when processing inputs.
- egui
-
Add support for 'egui' integration:
- Allow 'egui' to take priority over actions when processing inputs.Enables bevy_egui ^0.25