We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The provided MouseButton enum is very useful, however has some problems.
MouseButton
Multiple mouse buttons are defined for the same underlying id (e.g. 1 and LEFT both have the same id of 0).
1
LEFT
0
This means the following expression will evaluate to false: MouseButton.of(0) == MouseButton.LEFT.
MouseButton.of(0) == MouseButton.LEFT
Potential solution: Remove enum types 1, 2, 3, LAST. This would break backwards compatibility.
2
3
LAST
Perhaps there is another solution that doesnt break backwards compatibility?
Sadly its not possible to override Enum.equals which would probably be the best solution.
The text was updated successfully, but these errors were encountered:
Hi @cookiedragon234,
I see the problem.. what about moving the LEFT and so in the companion object?
Ps: sorry for the late reply but I took some paternity time
Sorry, something went wrong.
No branches or pull requests
The provided
MouseButton
enum is very useful, however has some problems.Multiple mouse buttons are defined for the same underlying id (e.g.
1
andLEFT
both have the same id of0
).This means the following expression will evaluate to false:
MouseButton.of(0) == MouseButton.LEFT
.Potential solution:
Remove enum types
1
,2
,3
,LAST
. This would break backwards compatibility.Perhaps there is another solution that doesnt break backwards compatibility?
Sadly its not possible to override Enum.equals which would probably be the best solution.
The text was updated successfully, but these errors were encountered: