deathframe 0.0.1

My game development framework for the amethyst game engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::system_prelude::*;

/// Handles all the logic for `InputManager`.
pub struct InputManagerSystem;

impl<'a> System<'a> for InputManagerSystem {
    type SystemData = (
        Read<'a, InputHandler<String, String>>,
        Write<'a, InputManager>,
    );

    fn run(&mut self, (input_handler, mut input_manager): Self::SystemData) {
        input_manager.update(&input_handler);
    }
}