2016-03-30 20:07:55 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2017-10-12 21:02:02 +00:00
|
|
|
#include <Core/gb.h>
|
2019-10-19 16:26:04 +00:00
|
|
|
#import <JoyKit/JoyKit.h>
|
2016-03-30 20:07:55 +00:00
|
|
|
|
2019-10-19 16:26:04 +00:00
|
|
|
@interface GBView : NSView<JOYListener>
|
2016-03-30 20:07:55 +00:00
|
|
|
- (void) flip;
|
|
|
|
- (uint32_t *) pixels;
|
|
|
|
@property GB_gameboy_t *gb;
|
2016-06-08 21:06:55 +00:00
|
|
|
@property (nonatomic) BOOL shouldBlendFrameWithPrevious;
|
2016-07-05 20:34:33 +00:00
|
|
|
@property (getter=isMouseHidingEnabled) BOOL mouseHidingEnabled;
|
2018-02-10 12:42:14 +00:00
|
|
|
@property bool isRewinding;
|
2018-06-11 17:23:51 +00:00
|
|
|
@property NSView *internalView;
|
|
|
|
- (void) createInternalView;
|
|
|
|
- (uint32_t *)currentBuffer;
|
|
|
|
- (uint32_t *)previousBuffer;
|
2018-11-14 22:21:21 +00:00
|
|
|
- (void)screenSizeChanged;
|
2019-10-19 16:26:04 +00:00
|
|
|
- (void)setRumble: (bool)on;
|
2016-03-30 20:07:55 +00:00
|
|
|
@end
|