bevy/src/input/mod.rs

18 lines
330 B
Rust
Raw Normal View History

2020-04-04 21:59:49 +00:00
pub mod keyboard;
use crate::{app::AppBuilder, prelude::AppPlugin};
use keyboard::KeyboardInput;
#[derive(Default)]
pub struct InputPlugin;
impl AppPlugin for InputPlugin {
fn build(&self, app: AppBuilder) -> AppBuilder {
app.add_event::<KeyboardInput>()
}
fn name(&self) -> &str {
"Input"
}
}