diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-02-05 18:37:53 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-02-05 18:37:53 +0100 |
commit | 6b52bf95a4a5d0f6c1dbf5ac49036dbf7d9c1858 (patch) | |
tree | 762b32990ce7f800bf56c7952ac6a43b8d3978e5 /src/android | |
parent | a6a43dbe658554c3259f73f5dc3c498461341b9f (diff) | |
parent | b2367fe2e6bded2c36d1b5e4f0dc595586b4bd08 (diff) | |
download | glutin-6b52bf95a4a5d0f6c1dbf5ac49036dbf7d9c1858.tar.gz glutin-6b52bf95a4a5d0f6c1dbf5ac49036dbf7d9c1858.zip |
Merge pull request #254 from aepsil0n/mousebutton-renaming
Rename enum variants of MouseButton
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/mod.rs | 6 |
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))); |