Skip to content
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

Added mouse button aliases #579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vallentin
Copy link
Contributor

This might be a personal preference, but I usually have MouseButton imported, which would make it easier to do MouseButton::Left, compared to importing glfw::MouseButtonLeft.

Additionally, this is also sliiiightly "safer" to use, as if someone forgets to import glfw::MouseButtonLeft, then matching on a MouseButton and having MouseButtonLeft in a match arm, that would only produce a warning. While forgetting to import MouseButton when using MouseButton::Left, would cause an error.


I can refactor some of the MouseButtonLeft (and friends) doc references, to instead point to MouseButton::Left (and friends), if that is desired?

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.

1 participant