예제 #1
0
        public KeyboardAndroid(InputSourceAndroid source, AndroidXenkoGameView gameView)
        {
            Source        = source;
            this.gameView = gameView;
            var listener = new Listener(this);

            gameView.SetOnKeyListener(listener);
        }
예제 #2
0
        public PointerAndroid(InputSourceAndroid source, AndroidXenkoGameView uiControl)
        {
            Source         = source;
            this.uiControl = uiControl;
            var listener = new Listener(this);

            uiControl.Resize += OnResize;
            uiControl.SetOnTouchListener(listener);

            OnResize(this, null);
        }