/virtualjoystick.js

a virtual joystick library to emulate a joystick on touch screen in javascript

Primary LanguageJavaScriptMIT LicenseMIT

a virtual joystick for touchscreen.

  • opts.container is the dom element on which we display joystick
  • opts.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.