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