iOS: Add a common PPSSPPBaseViewController

This commit is contained in:
Henrik Rydgård committed 2025-10-27 20:19:22 +01:00
1 parent 95549ae2c9
commit ae920edf91
5 files changed
+19 -11

No files matched your search

+3 -3
View File
@@ -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>
+1 -2
View File
@@ -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 -3
View File
@@ -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)
+10
View File
@@ -1,2 +1,12 @@
#import "ios/ViewControllerCommon.h"
@interface PPSSPPBaseViewController () {
}
@end
@implementation PPSSPPBaseViewController {
}
@end
+3 -3
View File
@@ -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