Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/ios/ViewControllerCommon.h
3185 views
1
#pragma once
2
3
#import <UIKit/UIKit.h>
4
5
@protocol PPSSPPViewController<NSObject>
6
@optional
7
8
- (void)hideKeyboard;
9
- (void)showKeyboard;
10
- (void)shareText:(NSString *)text;
11
- (void)shutdown;
12
- (void)bindDefaultFBO;
13
- (UIView *)getView;
14
- (void)startLocation;
15
- (void)stopLocation;
16
- (void)startVideo:(int)width height:(int)height;
17
- (void)stopVideo;
18
- (void)appSwitchModeChanged;
19
20
// Forwarded from the AppDelegate
21
- (void)didBecomeActive;
22
- (void)willResignActive;
23
24
- (void)uiStateChanged;
25
- (void)pickPhoto:(NSString *)saveFilename requestId:(int)requestId;
26
27
@end
28
29
extern id <PPSSPPViewController> sharedViewController;
30
31
#define IS_IPAD() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
32
#define IS_IPHONE() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)
33
34