mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(Metal/WindowListener) Fix duplicate symbol errors by
moving implementation of WindowListener to cocoa_common.m
This commit is contained in:
parent
7ea1d7d0da
commit
dbbf557954
@ -8,20 +8,9 @@
|
|||||||
|
|
||||||
#if defined(HAVE_COCOA_METAL) && !defined(HAVE_COCOATOUCH)
|
#if defined(HAVE_COCOA_METAL) && !defined(HAVE_COCOATOUCH)
|
||||||
@interface WindowListener : NSResponder<NSWindowDelegate>
|
@interface WindowListener : NSResponder<NSWindowDelegate>
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation WindowListener
|
|
||||||
|
|
||||||
/* Similarly to SDL, we'll respond to key events by doing nothing so we don't beep.
|
|
||||||
*/
|
|
||||||
- (void)flagsChanged:(NSEvent *)event { }
|
|
||||||
- (void)keyDown:(NSEvent *)event { }
|
|
||||||
- (void)keyUp:(NSEvent *)event { }
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(HAVE_COCOA_METAL) || defined(HAVE_COCOATOUCH)
|
#if defined(HAVE_COCOA_METAL) || defined(HAVE_COCOATOUCH)
|
||||||
@protocol ApplePlatform
|
@protocol ApplePlatform
|
||||||
|
|
||||||
|
@ -553,3 +553,16 @@ bool cocoa_get_metrics(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_COCOA_METAL) && !defined(HAVE_COCOATOUCH)
|
||||||
|
@implementation WindowListener
|
||||||
|
|
||||||
|
/* Similarly to SDL, we'll respond to key events
|
||||||
|
* by doing nothing so we don't beep.
|
||||||
|
*/
|
||||||
|
- (void)flagsChanged:(NSEvent *)event { }
|
||||||
|
- (void)keyDown:(NSEvent *)event { }
|
||||||
|
- (void)keyUp:(NSEvent *)event { }
|
||||||
|
|
||||||
|
@end
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user