public interface IOnAreaTouchListener
TouchEvent is
dispatched to an ITouchArea area. The callback will be invoked
before the TouchEvent is passed to the ITouchArea.
(c) Zynga 2012| Modifier and Type | Method and Description |
|---|---|
boolean |
onAreaTouched(TouchEvent pSceneTouchEvent,
ITouchArea pTouchArea,
float pTouchAreaLocalX,
float pTouchAreaLocalY)
Called when a
TouchEvent is dispatched to an ITouchArea. |
boolean onAreaTouched(TouchEvent pSceneTouchEvent, ITouchArea pTouchArea, float pTouchAreaLocalX, float pTouchAreaLocalY)
TouchEvent is dispatched to an ITouchArea. This allows
listeners to get a chance to respond before the target ITouchArea.onAreaTouched(TouchEvent, float, float) is called.pTouchArea - The ITouchArea that the TouchEvent has been dispatched to.pSceneTouchEvent - The TouchEvent object containing full information about the event.pTouchAreaLocalX - the x coordinate within the area touched.pTouchAreaLocalY - the y coordinate within the area touched.true if this IOnAreaTouchListener has consumed the TouchEvent, false otherwise.