android: updated for rust 5484d6f6d 2014-12-02 00:22:00 +0000

This commit is contained in:
Andrey Lesnikov 2014-12-05 01:30:17 +04:00
parent c6f5b4a107
commit b28273de04

View file

@ -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)));
}, },
}, },