Files
PojavLauncher_iOS/Natives/SurfaceViewController.h
Duy Tran Khanh d2986295ba Feature(custom controls): menu button
When added to custom control, it will replace the traditional swipe
gesture, while also show the menu in place (aka context menu)
2023-02-23 18:13:14 +07:00

61 lines
1.5 KiB
Objective-C

#import <UIKit/UIKit.h>
#import "customcontrols/ControlLayout.h"
#import "GameSurfaceView.h"
BOOL canAppendToLog;
dispatch_group_t fatalExitGroup;
CGRect virtualMouseFrame;
CGPoint lastVirtualMousePoint;
@interface SurfaceViewController : UIViewController
@property(nonatomic) ControlLayout *ctrlView;
@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;
@property(nonatomic) UIScreenEdgePanGestureRecognizer* edgeGesture;
@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)actionOpenNavigationMenu;
- (void)didSelectMenuItem:(int)item;
- (void)viewWillTransitionToSize_Navigation:(CGRect)frame;
@end