With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
I believe that occurs when the joystick snaps back to the center (neutral) position after you release it. When this occurs, it still calls the "onJoystickMoved" method that we setup in MainActivity, causing the 0,0 to appear.Sice it calls onJoystickMoved when it snaps back, it will interfere with the output behavior as whatever you setup in that method will run again except with the parameter xPercent=0 yPercent=0. In many cases this will actually be optimal, because it "resets" the behavior. For example, if you were to use this to control a car, you'd want it to stop moving when you let go. If you implemented car speed and direction based on the magnitude and direction in which the joystick is pulled, then the (0,0) parameter would stop.Hopes this helps-Isoceles
Gather Your (Internet Of) Things
Internet of Things Class
A Simple Android UI JoystickView Instructable »
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.