aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
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/android
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/android')
-rw-r--r--src/android/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index f406e2b..b89bf71 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -7,7 +7,7 @@ use {CreationError, Event, MouseCursor};
use CreationError::OsError;
use events::ElementState::{Pressed, Released};
use events::Event::{MouseInput, MouseMoved};
-use events::MouseButton::LeftMouseButton;
+use events::MouseButton;
use std::collections::RingBuf;
@@ -232,10 +232,10 @@ impl Window {
match self.event_rx.try_recv() {
Ok(event) => match event {
android_glue::Event::EventDown => {
- events.push_back(MouseInput(Pressed, LeftMouseButton));
+ events.push_back(MouseInput(Pressed, MouseButton::Left));
},
android_glue::Event::EventUp => {
- events.push_back(MouseInput(Released, LeftMouseButton));
+ events.push_back(MouseInput(Released, MouseButton::Left));
},
android_glue::Event::EventMove(x, y) => {
events.push_back(MouseMoved((x as i32, y as i32)));