A simple JoyStick that use HTML5, Canvas and Vanilla JavaScript, for touch and mouse interfaces (no JQuery required), preview at:
Full Changelog: https://github.com/bobboteck/JoyStick/compare/v1.1.6...v2.0.0
Fixed the Issue #10 and #11, now you can use also CSS fixed or absolute position value, to position the joystick on the page.
Now you can use more than one JoyStick simultaneously
Added a new parameter of JoyStick initialization, that sets the behavior of the stick, whether or not, it should return to zero position when released. The default value is True and the stick return to zero when released.
Close the Issue #5 to Correct indication of East direction
Now it correctly supports every position on the page, as long as the positioning of the Canvas is not absolute, and operation with touch devices has also been restored.
Fixed Issue #4 - Now JoyStick work in any position in the page, not only at 0,0
All functionality are available