public override bool Initialize(GameHost host) { // UIPointerInteraction is only available on iOS 13.4 and up if (!UIDevice.CurrentDevice.CheckSystemVersion(13, 4)) { return(false); } view.AddInteraction(pointerInteraction = new UIPointerInteraction(mouseDelegate = new IOSMouseDelegate())); mouseDelegate.LocationUpdated += locationUpdated; view.AddGestureRecognizer(panGestureRecognizer = new UIPanGestureRecognizer(panOffsetUpdated) { AllowedScrollTypesMask = UIScrollTypeMask.Continuous, MaximumNumberOfTouches = 0 // Only handle drags when no "touches" are active (ie. no buttons are in a pressed state) }); return(true); }
public UIPointerStyle GetStyleForRegion(UIPointerInteraction interaction, UIPointerRegion region) => UIPointerStyle.CreateHiddenPointerStyle();
public UIPointerRegion GetRegionForRequest(UIPointerInteraction interaction, UIPointerRegionRequest request, UIPointerRegion defaultRegion) { LocationUpdated(request.Location); return(defaultRegion); }