-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
The provided MouseButton
enum is very useful, however has some problems.
Multiple mouse buttons are defined for the same underlying id (e.g. 1
and LEFT
both have the same id of 0
).
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.
Metadata
Metadata
Assignees
Labels
No labels