Skip to content

Add FileDrag to the Input enum#1269

Merged
bvssvni merged 1 commit intoPistonDevelopers:masterfrom
kaikalii:master
Feb 6, 2019
Merged

Add FileDrag to the Input enum#1269
bvssvni merged 1 commit intoPistonDevelopers:masterfrom
kaikalii:master

Conversation

@kaikalii
Copy link
Contributor

@kaikalii 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
Copy link
Member

bvssvni commented Feb 6, 2019

Merging.

@bvssvni bvssvni merged commit 6888413 into PistonDevelopers:master Feb 6, 2019
@bvssvni
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants