1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use crate::resource::InputController;
use core::ecs::{System, Write};

pub struct InputSystem;

impl<'s> System<'s> for InputSystem {
    type SystemData = Write<'s, InputController>;

    fn run(&mut self, mut input: Self::SystemData) {
        (&mut input).process();
    }
}