From 7b293742315a56aff630b1753d678c262715e19a Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 2 May 2017 22:43:56 -0700 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13a1280..edeb46a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ JoyStick with Image for button

Usage

Gradle Import: jcenter
+ ```groovy repositories { @@ -34,12 +35,15 @@ dependencies { compile 'com.github.erz05:JoyStick:1.1.0' } ``` +

v1.1.0 BREAKING CHANGE!

+ 1. Made changes to JoyStickListener
a. Added Direction to onMove
b. Added Event calls for onTap and onDoubleTap

Defaults:

+ 1. Background = White 2. Button = Red 3. Button Radius = 25% @@ -77,6 +81,7 @@ JoyStick joyStick = new JoyStick(context); ```

JoyStickListener:

+ ```java //JoyStickListener Interface public interface JoyStickListener { @@ -104,6 +109,7 @@ joyStick.setListener(this); 9. DIRECTION_DOWN_LEFT = 7 To get JoyStick direction you can use + ```java joyStick.getDirection(); ``` @@ -116,11 +122,13 @@ or get it from the JoyStickListener 4. TYPE_2_AXIS_UP_DOWN To set Axis Type: + ```java joyStick.setType(JoyStick.TYPE_4_AXIS); ```

Getters/Setters

+ ```java //Set GamePad Color joyStick.setPadColor(Color.BLACK); @@ -164,4 +172,3 @@ joyStick.getAngleDegrees(); WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -