a virtual joystick for touchscreen.
opts.container
is the dom element on which we display joystickopts.stickElement
is the dom element which is display for the stick of the joystick.opts.baseElement
is the dom element which is display for its base.- Both elements are optional with sensible default
- you may set
opts.mouseSupport
to true during debug.