MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / HandleEvent

Method HandleEvent

Source/Engine/Platform/SDL/SDLPlatform.cpp:201–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool 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
215bool SDLPlatform::SupportsNativeDecorations()
216{

Callers 1

TickMethod · 0.45

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected