Merge pull request #157 from ozkriff/master
android: updated for rust 5484d6f6d 2014-12-02 00:22:00 +0000
This commit is contained in:
commit
ab387dc2a3
1 changed files with 3 additions and 3 deletions
|
|
@ -222,13 +222,13 @@ impl Window {
|
||||||
loop {
|
loop {
|
||||||
match self.event_rx.try_recv() {
|
match self.event_rx.try_recv() {
|
||||||
Ok(event) => match event {
|
Ok(event) => match event {
|
||||||
android_glue::EventDown => {
|
android_glue::Event::EventDown => {
|
||||||
events.push(MouseInput(Pressed, LeftMouseButton));
|
events.push(MouseInput(Pressed, LeftMouseButton));
|
||||||
},
|
},
|
||||||
android_glue::EventUp => {
|
android_glue::Event::EventUp => {
|
||||||
events.push(MouseInput(Released, LeftMouseButton));
|
events.push(MouseInput(Released, LeftMouseButton));
|
||||||
},
|
},
|
||||||
android_glue::EventMove(x, y) => {
|
android_glue::Event::EventMove(x, y) => {
|
||||||
events.push(MouseMoved((x as int, y as int)));
|
events.push(MouseMoved((x as int, y as int)));
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue