Пример #1
0
        public PointeriOS(InputSourceiOS source, iOSWindow uiControl, XenkoGameController gameController)
        {
            Source              = source;
            this.uiControl      = uiControl;
            this.gameController = gameController;
            var window = uiControl.MainWindow;

            window.UserInteractionEnabled            = true;
            window.MultipleTouchEnabled              = true;
            uiControl.GameView.MultipleTouchEnabled  = true;
            gameController.TouchesBeganDelegate     += Touched;
            gameController.TouchesMovedDelegate     += Touched;
            gameController.TouchesEndedDelegate     += Touched;
            gameController.TouchesCancelledDelegate += Touched;
            uiControl.GameView.Resize += OnResize;

            OnResize(null, EventArgs.Empty);
        }
Пример #2
0
 public InputSourceiOS(iOSWindow uiControl)
 {
     this.uiControl = uiControl;
 }