jeromeetienne / virtualjoystick.js

a virtual joystick library to emulate a joystick on touch screen in javascript
http://jeromeetienne.github.com/virtualjoystick.js/examples/basic.html
MIT License
417 stars 125 forks source link

Pull Request: Added Support for Limited Stick Travel #19

Closed erichlof closed 10 years ago

erichlof commented 10 years ago

This Pull Request adds support for limiting the distance that the Joystick is allowed to move from its base. By setting 'limitStickTravel' to 'true', it will limit the stick travel to a circle. The size of this limit circle is set by setting 'stickRadius' to the desired number of pixels. If no number is given, the limit defaults to 100 pixels.

jeromeetienne commented 10 years ago

seems perfect! thanks