Add support for Apple Silicon by upgrading winit. (#1043)
This commit is contained in:
parent
509b138e8f
commit
9602b24d0f
@ -23,6 +23,8 @@ current changes on git with [previous release tags][git_tag_comparison].
|
|||||||
- [Added new Bevy reflection system][926]
|
- [Added new Bevy reflection system][926]
|
||||||
- Replaces the properties system
|
- Replaces the properties system
|
||||||
- [Add removal_detection example][945]
|
- [Add removal_detection example][945]
|
||||||
|
- [Add support for Apple Silicon][928]
|
||||||
|
- [Allow windows to be maximized][1001]
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
@ -39,6 +41,7 @@ current changes on git with [previous release tags][git_tag_comparison].
|
|||||||
- [Use `mailbox` instead of `fifo` for vsync on supported systems][920]
|
- [Use `mailbox` instead of `fifo` for vsync on supported systems][920]
|
||||||
- [Break out Visible component from Draw][1034]
|
- [Break out Visible component from Draw][1034]
|
||||||
- Users setting `Draw::is_visible` or `Draw::is_transparent` should now set `Visible::is_visible` and `Visible::is_transparent`
|
- Users setting `Draw::is_visible` or `Draw::is_transparent` should now set `Visible::is_visible` and `Visible::is_transparent`
|
||||||
|
- [`winit` upgraded from version 0.23 to version 0.24][1043]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
@ -66,11 +69,14 @@ current changes on git with [previous release tags][git_tag_comparison].
|
|||||||
[917]: https://github.com/bevyengine/bevy/pull/917
|
[917]: https://github.com/bevyengine/bevy/pull/917
|
||||||
[920]: https://github.com/bevyengine/bevy/pull/920
|
[920]: https://github.com/bevyengine/bevy/pull/920
|
||||||
[926]: https://github.com/bevyengine/bevy/pull/926
|
[926]: https://github.com/bevyengine/bevy/pull/926
|
||||||
|
[928]: https://github.com/bevyengine/bevy/pull/928
|
||||||
[931]: https://github.com/bevyengine/bevy/pull/931
|
[931]: https://github.com/bevyengine/bevy/pull/931
|
||||||
[934]: https://github.com/bevyengine/bevy/pull/934
|
[934]: https://github.com/bevyengine/bevy/pull/934
|
||||||
[945]: https://github.com/bevyengine/bevy/pull/945
|
[945]: https://github.com/bevyengine/bevy/pull/945
|
||||||
[955]: https://github.com/bevyengine/bevy/pull/955
|
[955]: https://github.com/bevyengine/bevy/pull/955
|
||||||
|
[1001]: https://github.com/bevyengine/bevy/pull/1001
|
||||||
[1034]: https://github.com/bevyengine/bevy/pull/1034
|
[1034]: https://github.com/bevyengine/bevy/pull/1034
|
||||||
|
[1043]: https://github.com/bevyengine/bevy/pull/1043
|
||||||
|
|
||||||
## Version 0.3.0 (2020-11-03)
|
## Version 0.3.0 (2020-11-03)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ pub enum MouseButton {
|
|||||||
Left,
|
Left,
|
||||||
Right,
|
Right,
|
||||||
Middle,
|
Middle,
|
||||||
Other(u8),
|
Other(u16),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A mouse motion event
|
/// A mouse motion event
|
||||||
|
@ -26,9 +26,9 @@ bevy_window = { path = "../bevy_window", version = "0.3.0" }
|
|||||||
bevy_utils = { path = "../bevy_utils", version = "0.3.0" }
|
bevy_utils = { path = "../bevy_utils", version = "0.3.0" }
|
||||||
|
|
||||||
# other
|
# other
|
||||||
winit = { version = "0.23.0", default-features = false }
|
winit = { version = "0.24.0", default-features = false }
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
winit = { version = "0.23.0", features = ["web-sys"], default-features = false }
|
winit = { version = "0.24.0", features = ["web-sys"], default-features = false }
|
||||||
wasm-bindgen = { version = "0.2" }
|
wasm-bindgen = { version = "0.2" }
|
||||||
web-sys = "0.3"
|
web-sys = "0.3"
|
||||||
|
@ -138,7 +138,7 @@ fn run_return<F>(event_loop: &mut EventLoop<()>, event_handler: F)
|
|||||||
where
|
where
|
||||||
F: FnMut(Event<'_, ()>, &EventLoopWindowTarget<()>, &mut ControlFlow),
|
F: FnMut(Event<'_, ()>, &EventLoopWindowTarget<()>, &mut ControlFlow),
|
||||||
{
|
{
|
||||||
use winit::platform::desktop::EventLoopExtDesktop;
|
use winit::platform::run_return::EventLoopExtRunReturn;
|
||||||
event_loop.run_return(event_handler)
|
event_loop.run_return(event_handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user