diff --git a/src/video/cocoa/SDL_cocoametalview.h b/src/video/cocoa/SDL_cocoametalview.h index 69c4fea70..c173a0e7d 100644 --- a/src/video/cocoa/SDL_cocoametalview.h +++ b/src/video/cocoa/SDL_cocoametalview.h @@ -48,6 +48,7 @@ windowID:(Uint32)windowID; - (void)updateDrawableSize; +- (NSView *)hitTest:(NSPoint)point; /* Override superclass tag so this class can set it. */ @property (assign, readonly) NSInteger tag; diff --git a/src/video/cocoa/SDL_cocoametalview.m b/src/video/cocoa/SDL_cocoametalview.m index 605ecd370..291c55279 100644 --- a/src/video/cocoa/SDL_cocoametalview.m +++ b/src/video/cocoa/SDL_cocoametalview.m @@ -123,6 +123,10 @@ SDL_MetalViewEventWatch(void *userdata, SDL_Event *event) metalLayer.drawableSize = NSSizeToCGSize(backingSize); } +- (NSView *)hitTest:(NSPoint)point { + return nil; +} + @end SDL_MetalView