mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
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
|
@ -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…
Reference in a new issue