| 199 | } |
| 200 | |
| 201 | bool SDLPlatform::HandleEvent(SDL_Event& event) |
| 202 | { |
| 203 | switch (event.type) |
| 204 | { |
| 205 | case SDL_EVENT_QUIT: |
| 206 | { |
| 207 | // Close request came from taskbar or macOS application menu |
| 208 | Engine::MainWindow->Close(ClosingReason::User); |
| 209 | break; |
| 210 | } |
| 211 | } |
| 212 | return true; |
| 213 | } |
| 214 | |
| 215 | bool SDLPlatform::SupportsNativeDecorations() |
| 216 | { |