mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
a880b54508
* Add generic support for `#[derive(SystemParam)]` * Make EventReader a SystemParam
14 lines
311 B
Rust
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);
|
|
}
|
|
}
|