Merge pull request #7476 from stuartcarnie/sgc-cocoa-events

fix(cocoa): Use RApplication for OpenGL
This commit is contained in:
Twinaphex 2018-10-22 17:36:40 +02:00 committed by GitHub
commit 805f159154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,11 +88,17 @@ static void app_terminate(void)
{
[[NSApplication sharedApplication] terminate:nil];
}
#ifdef HAVE_METAL
@interface RAWindow : NSWindow
@end
@implementation RAWindow
#else
@interface RApplication : NSApplication
@end
@implementation RApplication
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
#define NSEventTypeKeyDown NSKeyDown