Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/ios/ViewControllerCommon.h
5673 views
1
#pragma once
2
3
#import <UIKit/UIKit.h>
4
5
#import <GameController/GameController.h>
6
7
#import "CameraHelper.h"
8
#import "LocationHelper.h"
9
#import "iCade/iCadeReaderView.h"
10
11
@interface PPSSPPBaseViewController : UIViewController<
12
UIImagePickerControllerDelegate, UINavigationControllerDelegate,
13
CameraFrameDelegate, LocationHandlerDelegate, UIKeyInput,
14
UIGestureRecognizerDelegate, iCadeEventDelegate>
15
16
- (void)hideKeyboard;
17
- (void)showKeyboard;
18
- (void)shareText:(NSString *)text;
19
- (void)shutdown;
20
- (void)bindDefaultFBO;
21
- (UIView *)getView;
22
- (void)startLocation;
23
- (void)stopLocation;
24
- (void)startVideo:(int)width height:(int)height;
25
- (void)stopVideo;
26
- (void)appSwitchModeChanged;
27
- (void)setupController:(GCController *)controller;
28
29
// Forwarded from the AppDelegate
30
- (void)didBecomeActive;
31
- (void)willResignActive;
32
33
- (void)uiStateChanged;
34
- (void)pickPhoto:(NSString *)saveFilename requestId:(int)requestId;
35
36
@end
37
38
extern PPSSPPBaseViewController *sharedViewController;
39
40
#define IS_IPAD() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
41
#define IS_IPHONE() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)
42
43