Skip to content

Commit

Permalink
Send Awakened event on Android when event loop is woken up (rust-wind…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget authored and tomaka committed Mar 6, 2018
1 parent f3d4301 commit e6fefd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions src/platform/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ impl EventsLoop {
event: WindowEvent::Refresh,
})
}
android_glue::Event::Wake => {
Some(Event::Awakened)
}
_ => {
None
}
Expand Down

0 comments on commit e6fefd5

Please sign in to comment.