Rename enum variants of MouseButton
With enums that are namespaced by default, it seems reasonable to be less redundant in the variant naming here.
This commit is contained in:
parent
a3cd89c2dc
commit
b2367fe2e6
5 changed files with 28 additions and 28 deletions
|
|
@ -46,10 +46,10 @@ pub enum ElementState {
|
|||
|
||||
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum MouseButton {
|
||||
LeftMouseButton,
|
||||
RightMouseButton,
|
||||
MiddleMouseButton,
|
||||
OtherMouseButton(u8),
|
||||
Left,
|
||||
Right,
|
||||
Middle,
|
||||
Other(u8),
|
||||
}
|
||||
|
||||
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue