Files
PojavLauncher_iOS/Natives/SurfaceViewController.h
T
Duy Tran Khanh 36c3e312f3 Feat[controls]: v3: joystick & conditonal visibility
- Finish joystick view
+ Finish forward lock
+ When in menu, oystick can be used to move the virtual mouse
- Finish conditonal visibility
- Replace Make Default with Load
2023-08-11 20:58:14 +07:00

62 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;
- (void)updateGrabState;
+ (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