diff --git a/Cargo.toml b/Cargo.toml index a0569f7f..8d278a64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winit" -version = "0.7.1" +version = "0.7.2" authors = ["The winit contributors, Pierre Krieger "] description = "Cross-platform window creation library." keywords = ["windowing"] diff --git a/src/platform/android/mod.rs b/src/platform/android/mod.rs index dec6e752..09c9cb14 100644 --- a/src/platform/android/mod.rs +++ b/src/platform/android/mod.rs @@ -82,6 +82,7 @@ impl<'a> Iterator for PollEventsIterator<'a> { }, location: (motion.x as f64, motion.y as f64), id: motion.pointer_id as u64, + device_id: DEVICE_ID, })) }, Ok(android_glue::Event::InitWindow) => { @@ -273,3 +274,6 @@ impl WindowProxy { 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);