bevy/examples/app/drag_and_drop.rs

15 lines
311 B
Rust
Raw Normal View History

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);
}
}