Send Awakened event on Android when event loop is woken up (#417)

This commit is contained in:
Paul Rouget 2018-03-07 01:06:56 +08:00 committed by Pierre Krieger
parent f3d43016ad
commit e6fefd5e93
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- Impl `Hash`, `PartialEq`, and `Eq` for `events::ModifiersState`.
- Implement `MonitorId::get_hidpi_factor` for MacOS.
- Added method `os::macos::MonitorIdExt::get_nsscreen() -> *mut c_void` that gets a `NSScreen` object matching the monitor ID.
- Send `Awakened` event on Android when event loop is woken up.
# Version 0.11.1 (2018-02-19)

View file

@ -106,6 +106,9 @@ impl EventsLoop {
event: WindowEvent::Refresh,
})
}
android_glue::Event::Wake => {
Some(Event::Awakened)
}
_ => {
None
}