mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
iOS: Add a common PPSSPPBaseViewController
This commit is contained in:
1 parent
95549ae2c9
commit
ae920edf91
5 files changed
+19
-11
No files matched your search
@@ -8,11 +8,11 @@
|
||||
#import "CameraHelper.h"
|
||||
#import "LocationHelper.h"
|
||||
|
||||
#include "ViewControllerCommon.h"
|
||||
#import "ViewControllerCommon.h"
|
||||
|
||||
@interface PPSSPPViewControllerGL : UIViewController <GLKViewDelegate,
|
||||
@interface PPSSPPViewControllerGL : PPSSPPBaseViewController<GLKViewDelegate,
|
||||
iCadeEventDelegate, LocationHandlerDelegate, CameraFrameDelegate,
|
||||
UIGestureRecognizerDelegate, UIKeyInput, PPSSPPViewController,
|
||||
UIGestureRecognizerDelegate, UIKeyInput,
|
||||
UIImagePickerControllerDelegate, UINavigationControllerDelegate>
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#import "IAPManager.h"
|
||||
|
||||
#import <GLKit/GLKit.h>
|
||||
#import "ViewController.h"
|
||||
#import "Controls.h"
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
|
||||
@@ -97,7 +96,7 @@ static std::atomic<bool> exitRenderLoop;
|
||||
static std::atomic<bool> renderLoopRunning;
|
||||
static std::thread g_renderLoopThread;
|
||||
|
||||
id<PPSSPPViewController> sharedViewController;
|
||||
PPSSPPBaseViewController *sharedViewController;
|
||||
|
||||
@interface PPSSPPViewControllerGL () {
|
||||
ICadeTracker g_iCadeTracker;
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@protocol PPSSPPViewController<NSObject>
|
||||
@optional
|
||||
@interface PPSSPPBaseViewController : UIViewController
|
||||
|
||||
- (void)hideKeyboard;
|
||||
- (void)showKeyboard;
|
||||
@@ -26,7 +25,7 @@
|
||||
|
||||
@end
|
||||
|
||||
extern id <PPSSPPViewController> sharedViewController;
|
||||
extern PPSSPPBaseViewController *sharedViewController;
|
||||
|
||||
#define IS_IPAD() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
|
||||
#define IS_IPHONE() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)
|
||||
@@ -1,2 +1,12 @@
|
||||
#import "ios/ViewControllerCommon.h"
|
||||
|
||||
|
||||
@interface PPSSPPBaseViewController () {
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation PPSSPPBaseViewController {
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -2,15 +2,15 @@
|
||||
// Used by both Vulkan/MoltenVK and the future Metal backend.
|
||||
|
||||
#pragma once
|
||||
#include "ViewControllerCommon.h"
|
||||
|
||||
#import "ViewControllerCommon.h"
|
||||
#import "iCade/iCadeReaderView.h"
|
||||
#import "CameraHelper.h"
|
||||
#import "LocationHelper.h"
|
||||
|
||||
@interface PPSSPPViewControllerMetal : UIViewController<
|
||||
@interface PPSSPPViewControllerMetal : PPSSPPBaseViewController<
|
||||
iCadeEventDelegate, LocationHandlerDelegate, CameraFrameDelegate,
|
||||
UIGestureRecognizerDelegate, UIKeyInput, PPSSPPViewController,
|
||||
UIGestureRecognizerDelegate, UIKeyInput,
|
||||
UIImagePickerControllerDelegate, UINavigationControllerDelegate>
|
||||
@end
|
||||
|
||||
|
||||
Reference in new issue
Block a user