mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Merge pull request #216 from MortimerGoro/android_compilation
Fix Android compilation error
This commit is contained in:
commit
aad82eb987
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "winit"
|
name = "winit"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||||
description = "Cross-platform window creation library."
|
description = "Cross-platform window creation library."
|
||||||
keywords = ["windowing"]
|
keywords = ["windowing"]
|
||||||
|
|
|
@ -82,6 +82,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
||||||
},
|
},
|
||||||
location: (motion.x as f64, motion.y as f64),
|
location: (motion.x as f64, motion.y as f64),
|
||||||
id: motion.pointer_id as u64,
|
id: motion.pointer_id as u64,
|
||||||
|
device_id: DEVICE_ID,
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
Ok(android_glue::Event::InitWindow) => {
|
Ok(android_glue::Event::InitWindow) => {
|
||||||
|
@ -273,3 +274,6 @@ impl WindowProxy {
|
||||||
android_glue::wake_event_loop();
|
android_glue::wake_event_loop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Constant device ID, to be removed when this backend is updated to report real device IDs.
|
||||||
|
const DEVICE_ID: ::DeviceId = ::DeviceId(DeviceId);
|
||||||
|
|
Loading…
Reference in a new issue