aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
diff options
context:
space:
mode:
authorEduard Bopp <eduard.bopp@aepsil0n.de>2015-02-05 16:52:53 +0100
committerEduard Bopp <eduard.bopp@aepsil0n.de>2015-02-05 16:52:53 +0100
commitb2367fe2e6bded2c36d1b5e4f0dc595586b4bd08 (patch)
treefbd22f780f5251e2964bbdddd53cb95f6f8b1f5b /src/win32
parenta3cd89c2dc6f23e86a56dacae9cbdf9e35ab1c20 (diff)
downloadglutin-b2367fe2e6bded2c36d1b5e4f0dc595586b4bd08.tar.gz
glutin-b2367fe2e6bded2c36d1b5e4f0dc595586b4bd08.zip
Rename enum variants of MouseButton
With enums that are namespaced by default, it seems reasonable to be less redundant in the variant naming here.
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/init.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs
index a20361d..754d251 100644
--- a/src/win32/init.rs
+++ b/src/win32/init.rs
@@ -542,49 +542,49 @@ extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
winapi::WM_LBUTTONDOWN => {
use events::Event::MouseInput;
- use events::MouseButton::LeftMouseButton;
+ use events::MouseButton::Left;
use events::ElementState::Pressed;
- send_event(window, MouseInput(Pressed, LeftMouseButton));
+ send_event(window, MouseInput(Pressed, Left));
0
},
winapi::WM_LBUTTONUP => {
use events::Event::MouseInput;
- use events::MouseButton::LeftMouseButton;
+ use events::MouseButton::Left;
use events::ElementState::Released;
- send_event(window, MouseInput(Released, LeftMouseButton));
+ send_event(window, MouseInput(Released, Left));
0
},
winapi::WM_RBUTTONDOWN => {
use events::Event::MouseInput;
- use events::MouseButton::RightMouseButton;
+ use events::MouseButton::Right;
use events::ElementState::Pressed;
- send_event(window, MouseInput(Pressed, RightMouseButton));
+ send_event(window, MouseInput(Pressed, Right));
0
},
winapi::WM_RBUTTONUP => {
use events::Event::MouseInput;
- use events::MouseButton::RightMouseButton;
+ use events::MouseButton::Right;
use events::ElementState::Released;
- send_event(window, MouseInput(Released, RightMouseButton));
+ send_event(window, MouseInput(Released, Right));
0
},
winapi::WM_MBUTTONDOWN => {
use events::Event::MouseInput;
- use events::MouseButton::MiddleMouseButton;
+ use events::MouseButton::Middle;
use events::ElementState::Pressed;
- send_event(window, MouseInput(Pressed, MiddleMouseButton));
+ send_event(window, MouseInput(Pressed, Middle));
0
},
winapi::WM_MBUTTONUP => {
use events::Event::MouseInput;
- use events::MouseButton::MiddleMouseButton;
+ use events::MouseButton::Middle;
use events::ElementState::Released;
- send_event(window, MouseInput(Released, MiddleMouseButton));
+ send_event(window, MouseInput(Released, Middle));
0
},