Cargo Features

[dependencies]
leafwing-input-manager = { version = "0.16.0", default-features = false, features = ["timing", "mouse", "keyboard", "gamepad", "asset", "ui", "egui"] }
default = asset, gamepad, keyboard, mouse, ui

These default features are set whenever leafwing-input-manager is added without default-features = false somewhere in the dependency tree.

timing

Allow support for tracking timing information about actions (how long a button was pressed, etc.)

Affects action_data::ButtonData.timing, leafwing-input-manager::timing

mouse default

Adds support for mouse-based inputs.

Affects user_input::mouse

keyboard default

Adds support for keyboard-based inputs.

Affects user_input::keyboard

gamepad default

Adds support for gamepad-based inputs.

Enables bevy_gilrs of bevy

Affects user_input::gamepad

asset default

Allow using the InputMap as bevy::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.

Enables bevy_ui of bevy

Affects systems::filter_captured_input

egui

Add support for 'egui' integration:
- Allow 'egui' to take priority over actions when processing inputs.

Enables bevy_egui ^0.31

Affects systems::filter_captured_input