mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-27 10:56:23 +00:00
Add the Cocoa notification driver
Supported on macOS 10.14+ and iOS.
This commit is contained in:
@@ -359,6 +359,11 @@ bool SDL_InitSubSystem(SDL_InitFlags flags)
|
||||
SDL_DBus_Init();
|
||||
#endif
|
||||
|
||||
#ifdef SDL_PLATFORM_APPLE
|
||||
// Apple platforms require the notification delegate to be registered early.
|
||||
Cocoa_RegisterNotificationDelegate();
|
||||
#endif
|
||||
|
||||
#ifdef SDL_PLATFORM_WINDOWS
|
||||
if (flags & (SDL_INIT_HAPTIC | SDL_INIT_JOYSTICK)) {
|
||||
if (!SDL_HelperWindowCreate()) {
|
||||
|
||||
Reference in New Issue
Block a user