CCTargetedTouchHandler
CCTargetedTouchHandler
Cocos2DImplementors of this interface will handle touches in serial order, one touch at at time.
Inheritance: System.Object → Cocos2D.CCTouchHandler
Constructors
CCTargetedTouchHandler(ICCTargetedTouchDelegate, int, bool)
CCTargetedTouchHandler(ICCTargetedTouchDelegate, int, bool)(Cocos2D.ICCTargetedTouchDelegate pDelegate, System.Int32 nPriority, System.Boolean bSwallow)Parameters:
pDelegate (Cocos2D.ICCTargetedTouchDelegate)nPriority (System.Int32)bSwallow (System.Boolean)Fields
m_bConsumesTouches(System.Boolean)
m_pClaimedTouches(System.Collections.Generic.ListCocos2D.CCTouch)
Properties
ClaimedTouches(System.Collections.Generic.ListCocos2D.CCTouch)
MutableSet that contains the claimed touches
ConsumesTouches(System.Boolean)
whether or not the touches are consumed by this handler. A consumed touch will not propagate to the other touch handlers.
Methods
HandlerWithDelegate(ICCTargetedTouchDelegate, int, bool)
Cocos2D.CCTargetedTouchHandler HandlerWithDelegate(ICCTargetedTouchDelegate, int, bool)(Cocos2D.ICCTargetedTouchDelegate pDelegate, System.Int32 nPriority, System.Boolean bSwallow)allocates a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not
Parameters:
pDelegate (Cocos2D.ICCTargetedTouchDelegate)nPriority (System.Int32)bSwallow (System.Boolean)Returns:
Cocos2D.CCTargetedTouchHandlerExample