* Multitouch handling, allows one of these actions below to work with moving camera at the same time. - Switching hotbar slot; might not work properly - Destroying block (left mouse button) with another finger long-pressed (without pressing the PRI button) - Right mouse trigger with another finger tapped onto the screen (without pressing the SEC button); not working properly yet * Sub-pixel cursor support; not yet checked
25 lines
509 B
Objective-C
25 lines
509 B
Objective-C
#import <UIKit/UIKit.h>
|
|
#import <MetalKit/MetalKit.h>
|
|
#import "MGLKit.h"
|
|
|
|
CGRect virtualMouseFrame;
|
|
CGPoint lastVirtualMousePoint;
|
|
|
|
@interface GameSurfaceView : UIView
|
|
{
|
|
CALayer* layer;
|
|
CGColorSpaceRef colorSpace;
|
|
CGDataProviderDirectCallbacks callbacks;
|
|
}
|
|
|
|
- (void)displayLayer;
|
|
@end
|
|
|
|
@interface SurfaceViewController : UIViewController
|
|
|
|
@property(nonatomic, strong) GameSurfaceView* surfaceView;
|
|
@property UIImageView* mousePointerView;
|
|
@property UIPanGestureRecognizer* scrollPanGesture;
|
|
|
|
@end
|