Repository navigation
Improve bevy_winit documentation - #7609
Conversation
f1a0efb to
45ac905
Compare
commented
Jul 25, 2023
|
Example |
b664432 to
dfe3bea
Compare
commented
Jul 25, 2023
|
Example |
dfe3bea to
36c49c1
Compare
commented
Jul 25, 2023
|
Example |
a716fce to
10a8ea6
Compare
commented
Jul 25, 2023
@IceSentry, I changed it back to doing the |
10a8ea6 to
b194c60
Compare
commented
Jul 25, 2023
|
I'm guessing the addition of the generic Otherwise in this PR I don't understand its purpose, since all the functions of note here are private, and |
commented
Jul 25, 2023
Ah, yes, that's correct. I'll change it back though. It's small enough, and it'll be justified then. |
57ac11a to
4f09919
Compare
left a comment
•
There was a problem hiding this comment.
I'm not sure I understood everything but I finally reviewed it.
Sorry for the delay.
I'm mostly concerned about #7609 (comment).
| @@ -244,79 +241,83 @@ struct InputEvents<'w> { | |||
| mouse_wheel_input: EventWriter<'w, MouseWheel>, | |||
| touch_input: EventWriter<'w, TouchInput>, | |||
| ime_input: EventWriter<'w, Ime>, | |||
There was a problem hiding this comment.
Nitpick:
Maybe events from bevy_input should be bellow the ones from bevy_window?
(with maybe a mention of that in the comments, and the "// device events" could mention more clearly that it's a winit's DeviceEvent and the other ones are WindowEvents?)
| /// input, or the window being resized) is received or the time limit is reached. | ||
| /// The [`App`](bevy_app::App) will update in response to the following, until an | ||
| /// [`AppExit`](bevy_app::AppExit) event appears: | ||
| /// - enough time has elapsed since the previous update |
There was a problem hiding this comment.
| /// - enough time has elapsed since the previous update | |
| /// - enough time has elapsed since the previous update, see [`UpdateMode::Reactive::wait`] |
There was a problem hiding this comment.
Why link back to Reactive a second time here when ReactiveLowPower's wait field already has its own documentation?
Co-authored-by: Sélène Amanita <134181069+Selene-Amanita@users.noreply.github.com>
Redo of #7590 since I messed up my branch.
Objective
Solution
Migration Guide
UpdateMode::Reactive { max_wait: .. }->UpdateMode::Reactive { wait: .. }UpdateMode::ReactiveLowPower { max_wait: .. }->UpdateMode::ReactiveLowPower { wait: .. }