From 86439e76273dcb1c1329b88f5e5ddfda43cff24e Mon Sep 17 00:00:00 2001 From: Pavel fljot Date: Sun, 18 Mar 2012 12:19:43 +0200 Subject: [PATCH] README update for simplified API --- README.textile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.textile b/README.textile index 03f8859..9014360 100644 --- a/README.textile +++ b/README.textile @@ -42,7 +42,7 @@ And I hope people to become giving some real feedback at least. h3. Getting Started Like so: -
var doubleTap:TapGesture = new TapGesture(new DisplayObjectAdapter(myButton));
+
var doubleTap:TapGesture = new TapGesture(myButton);
 doubleTap.numTapsRequired = 2;
 doubleTap.addEventListener(TapGestureEvent.GESTURE_TAP, onDoubleTap);
 ...
@@ -77,7 +77,8 @@ In order to use detect gestures with Starling do following:
 
 var gesturesManager:IGesturesManager = GesturesManager.getInstance();
 // Register instance of StarlingDisplayListAdapter to be used for objects of type starling.display.DisplayObject.
-// What StarlingDisplayListAdapter does: helps to build hierarchy (chain of parents) for any Starling display object.
+// What StarlingDisplayListAdapter does: helps to build hierarchy (chain of parents) for any Starling display object
+// and acts as a adapter for gesture target to provide strong-typed access to methods like globalToLocal() and contains().
 gesturesManager.addDisplayListAdapter(starling.display.DisplayObject, new StarlingDisplayListAdapter());
 
 // Initialize and register StarlingInputAdapter.
@@ -86,7 +87,7 @@ gesturesManager.addInputAdapter(new StarlingInputAdapter(starling));
 
Now you can register gesture in familiar way: -
var tap:TapGesture = new TapGesture(new StarlingDisplayObjectAdapter(starlingSprite));
+
var tap:TapGesture = new TapGesture(starlingSprite);