mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
android: Updated to latest android-rs-glue
This commit is contained in:
parent
9c8b49fec2
commit
2da557c0cc
|
@ -86,11 +86,12 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
||||||
fn next(&mut self) -> Option<Event> {
|
fn next(&mut self) -> Option<Event> {
|
||||||
match self.window.event_rx.try_recv() {
|
match self.window.event_rx.try_recv() {
|
||||||
Ok(event) => {
|
Ok(event) => {
|
||||||
Some(match event {
|
match event {
|
||||||
android_glue::Event::EventDown => MouseInput(Pressed, MouseButton::Left),
|
android_glue::Event::EventDown => Some(MouseInput(Pressed, MouseButton::Left)),
|
||||||
android_glue::Event::EventUp => MouseInput(Released, MouseButton::Left),
|
android_glue::Event::EventUp => Some(MouseInput(Released, MouseButton::Left)),
|
||||||
android_glue::Event::EventMove(x, y) => MouseMoved((x as i32, y as i32)),
|
android_glue::Event::EventMove(x, y) => Some(MouseMoved((x as i32, y as i32))),
|
||||||
})
|
_ => None,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue