feat: Added input system

- Added input plugin to manage controls config
- Added tests for casting InputMap to InputAsset and backwards
This commit is contained in:
Alexey 2026-03-03 09:26:52 +03:00
commit ae7bfd7c27
5 changed files with 471 additions and 3 deletions

View file

@ -1,10 +1,20 @@
pub mod player;
pub mod layout;
pub mod input;
#[cfg(test)]
mod tests;
use bevy::prelude::*;
pub struct ExpeditionPlugin;
pub enum InputActions {
MoveLeft,
MoveRight,
ToggleInventory,
Interact,
}
fn camera_bundle() -> impl Bundle {
(
Camera2d,