bevy/examples/app/drag_and_drop.rs
TheRawMeatball a880b54508
Make EventReader a SystemParam (#1244)
* Add generic support for `#[derive(SystemParam)]`
* Make EventReader a SystemParam
2021-01-18 22:23:30 -08:00

14 lines
311 B
Rust

use bevy::prelude::*;
fn main() {
App::build()
.add_plugins(DefaultPlugins)
.add_system(file_drag_and_drop_system.system())
.run();
}
fn file_drag_and_drop_system(mut events: EventReader<FileDragAndDrop>) {
for event in events.iter() {
println!("{:?}", event);
}
}