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:
Eduard Bopp 2015-02-05 16:52:53 +01:00
parent a3cd89c2dc
commit b2367fe2e6
5 changed files with 28 additions and 28 deletions

View file

@ -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)]