Skip to content

Commit

Permalink
shave some work
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB committed Feb 25, 2024
1 parent 637b015 commit a9cd54b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_winit/src/winit_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ impl From<KeyboardInput> for WinitEvent {

/// Forwards buffered [`WinitEvent`] events to the app.
pub(crate) fn forward_winit_events(buffered_events: &mut Vec<WinitEvent>, app: &mut App) {
if buffered_events.is_empty() {
return;
}
for winit_event in buffered_events.iter() {
match winit_event.clone() {
WinitEvent::ApplicationLifetime(e) => {
Expand Down

0 comments on commit a9cd54b

Please sign in to comment.