Add quit event to queue without using private SDL method

This commit is contained in:
Phil Marell
2021-08-08 16:57:24 +10:00
parent 9f5699a61e
commit 7ba11df286
2 changed files with 12 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
#import "AerofoilApplication.h"
#include "SDL.h"
@implementation AerofoilApplication
- (void)terminate:(id)sender {
SDL_Event event;
event.quit.type = SDL_QUIT;
event.quit.timestamp = SDL_GetTicks();
SDL_PushEvent(&event);
}
@end