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); }
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); }