rocker-controller

Mouse controller rocker style controller for a game input

rocker-controller

Basic rocker/swivel controller that outputs x/y movement delta

var Controller = require("rocker-controller");
var pad = new Controller;
pad.appendTo(document.body);
pad.on("data", function(d) {
  object.x += d[0];
  object.y += d[1];
});