Files
PojavLauncher_iOS/Natives/SurfaceViewController.h
T
Duy Tran Khanh 838f99af1b Support external display resolution
TODO: add checks to not confuse with Stage Manager + external display

README.md: Added missing credits
2022-11-13 22:01:57 +07:00

56 lines
1.3 KiB
Objective-C

#import <UIKit/UIKit.h>
#import "GameSurfaceView.h"
BOOL canAppendToLog;
dispatch_group_t fatalExitGroup;
CGRect virtualMouseFrame;
CGPoint lastVirtualMousePoint;
@interface SurfaceViewController : UIViewController
@property(nonatomic) GameSurfaceView* surfaceView;
@property(nonatomic) UIView *touchView;
@property UIImageView* mousePointerView;
@property(nonatomic) UIPanGestureRecognizer* scrollPanGesture;
@property(nonatomic) UIView* rootView;
- (void)sendTouchPoint:(CGPoint)location withEvent:(int)event;
- (void)updateSavedResolution;
+ (BOOL)isRunning;
// LogView category
@property(nonatomic) UITableView* logTableView;
@property(nonatomic) UIView* logOutputView;
// Navigation category
@property(nonatomic) NSArray *menuArray;
@property(nonatomic) UITableView *menuView;
@end
@interface SurfaceViewController(ExternalDisplay)
- (void)switchToExternalDisplay;
- (void)switchToInternalDisplay;
@end
@interface SurfaceViewController(LogView)
+ (void)appendToLog:(NSString *)line;
+ (void)handleExitCode:(int)code;
- (void)viewWillTransitionToSize_LogView:(CGRect)frame;
@end
@interface SurfaceViewController(Navigation)<UIGestureRecognizerDelegate, UITableViewDataSource, UITableViewDelegate>
- (void)viewWillTransitionToSize_Navigation:(CGRect)frame;
@end