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

[rcore] Added MouseButton newtype #406

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

Aurora2500
Copy link
Contributor

Currently all the IsMouseButton* functions take in an int for the mouse button, which can be confusing for documentation reasons and has less type safety than if it used a newtype wrapper for int.

All I did is add a newtype & change the IsMouseButton functions accordingly.

@gen2brain gen2brain merged commit b4d0c52 into gen2brain:master Aug 26, 2024
10 checks passed
@gen2brain
Copy link
Owner

Merged, 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.

3 participants