mirror of
https://github.com/lightsoutgames/bevy_full_throttle
synced 2024-12-23 14:05:56 +00:00
chore: Upgrade Bevy and windows dependencies.
This commit is contained in:
parent
7cb62068bf
commit
465106e21c
|
@ -9,11 +9,11 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bevy = { version = "0.11", default-features = false }
|
||||
bevy = { version = "0.12", default-features = false }
|
||||
ctrlc = "3"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows = { version = "0.51", features = [
|
||||
windows = { version = "0.52", features = [
|
||||
"Win32_Foundation",
|
||||
"Win32_System_Power",
|
||||
"Win32_System_Registry",
|
||||
|
|
|
@ -40,7 +40,7 @@ fn focus_change(
|
|||
mut focus: EventReader<WindowFocused>,
|
||||
scheme: Res<DefaultScheme>,
|
||||
) {
|
||||
for event in focus.iter() {
|
||||
for event in focus.read() {
|
||||
if event.focused {
|
||||
#[cfg(windows)]
|
||||
unsafe {
|
||||
|
@ -61,7 +61,7 @@ fn focus_change(
|
|||
|
||||
#[allow(unused_variables)]
|
||||
fn exit(mut exit: EventReader<AppExit>, scheme: Res<DefaultScheme>) {
|
||||
for event in exit.iter() {
|
||||
for event in exit.read() {
|
||||
#[cfg(windows)]
|
||||
unsafe {
|
||||
Power::PowerSetActiveScheme(None, Some(&**scheme))
|
||||
|
|
Loading…
Reference in New Issue
Block a user