mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 19:43:07 +00:00
18 lines
330 B
Rust
18 lines
330 B
Rust
|
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"
|
||
|
}
|
||
|
}
|