PistonDevelopers / piston

A modular game engine written in Rust
https://www.piston.rs
MIT License
4.62k stars 234 forks source link

Add `FileDrag` to the `Input` enum #1269

Closed kaikalii closed 5 years ago

kaikalii commented 5 years ago

I wanted piston to be able to hand file drag events, so I added an enum called FileDrag which contains variants that mirror the file drag events of glutin. I added this enum as the only field of a new variant of Input, Input::FileDrag. I was going to add it to the Motion enum instead, but file dragging events include a PathBuf, which is not Copy.

bvssvni commented 5 years ago

Merging.

bvssvni commented 5 years ago

Thanks!