Syntax:
initJoystick({
el: "joystick", //id of canvas
posChange: function(x, y){
/*Do stuff*/
}
});
- innerCircleClr: (color string)
- outerCircleClr: (color string)
- innerCircleRadius: (integer)
- margin: (integer)
- showPos: (boolean)
- autoCenter: (boolean)