Ejemplo n.º 1
0
        public TouchScreenInput(CCLayer owner)
        {
            this.owner = owner;

            analogStick       = new TouchScreenAnalogStick();
            analogStick.Owner = owner;

            touchListener = new CCEventListenerTouchAllAtOnce();
            touchListener.OnTouchesMoved = HandleTouchesMoved;
            touchListener.OnTouchesBegan = HandleTouchesBegan;
            owner.AddEventListener(touchListener);
        }
Ejemplo n.º 2
0
		public TouchScreenInput(CCLayer owner)
		{
            this.owner = owner;

			analogStick = new TouchScreenAnalogStick ();
			analogStick.Owner = owner;

			touchListener = new CCEventListenerTouchAllAtOnce ();
			touchListener.OnTouchesMoved = HandleTouchesMoved;
			touchListener.OnTouchesBegan = HandleTouchesBegan;
			owner.AddEventListener (touchListener);

		}