Skip to content

Commit

Permalink
Added SDL2 events to be checked
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Jan 26, 2022
1 parent b18b099 commit e663a4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/engine/src/sdl2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ impl Platform for Sdl2 {

// Window events
SdlEvent::Window { win_event, .. } => match win_event {
SdlWindowEvent::Shown => Event::Shown,
SdlWindowEvent::Minimized => Event::Hidden,
SdlWindowEvent::Shown
| SdlWindowEvent::Maximized
| SdlWindowEvent::Restored => Event::Shown,
SdlWindowEvent::Hidden | SdlWindowEvent::Minimized => Event::Hidden,
_ => continue,
},

Expand Down

0 comments on commit e663a4e

Please sign in to comment.