mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-25 15:46:36 +00:00
Add quit event to queue without using private SDL method
This commit is contained in:
13
AerofoilMac/AerofoilMac/AerofoilApplication.mm
Normal file
13
AerofoilMac/AerofoilMac/AerofoilApplication.mm
Normal 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
|
Reference in New Issue
Block a user