New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Feb 6, 2019

Conversation

Projects
None yet
2 participants
@kaikalii
Copy link
Contributor

kaikalii commented Feb 6, 2019

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

This comment has been minimized.

Copy link
Member

bvssvni commented Feb 6, 2019

Merging.

@bvssvni bvssvni merged commit 6888413 into PistonDevelopers:master Feb 6, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@bvssvni

This comment has been minimized.

Copy link
Member

bvssvni commented Feb 6, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment