Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Desmume2015 [WIP] #2371

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
//

#import <PVDesmume2015/PVDesmume2015Core.h>
#import <Foundation/Foundation.h>

// Forward declarations from libretro.cpp
extern unsigned GPU_LR_FRAMEBUFFER_NATIVE_WIDTH;
extern unsigned GPU_LR_FRAMEBUFFER_NATIVE_HEIGHT;
extern int current_layout;

@protocol MouseResponder;

typedef enum PVDSButton: NSInteger PVDSButton;

NS_ASSUME_NONNULL_BEGIN

@interface PVDesmume2015CoreBridge (Controls) <PVDSSystemResponderClient>
@interface PVDesmume2015CoreBridge (Controls) <PVDSSystemResponderClient, MouseResponder>

- (void)initControllBuffers;
- (void)pollControllers;
Expand All @@ -26,6 +34,9 @@ NS_ASSUME_NONNULL_BEGIN

- (void)didPush:(NSInteger)button forPlayer:(NSInteger)player;
- (void)didRelease:(NSInteger)button forPlayer:(NSInteger)player;

@property (nonatomic, readonly) BOOL gameSupportsMouse;
@property (nonatomic, readonly) BOOL requiresMouse;
@end

NS_ASSUME_NONNULL_END
Loading
Loading