New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dancemat

PS3 compatible dancemat controller into Node.js


Version published
Maintainers
1
Created

Node Dancemat

Interface for PS3 compatible dancemat controller into Node.js

Usage

var DancematController = require('./dancemat')
var dancemat = new DancematController

dancemat.on("start:press", function(key) {
  console.log("start press");
});

dancemat.on("select:press", function(key) {
  console.log("select press");
});

dancemat.on("left:press", function(key) {
  console.log("left press");
});

dancemat.on("right:press", function(key) {
  console.log("right press");
});

dancemat.on("right:release", function(key) {
  console.log("right release");
});

dancemat.on("left:release", function(key) {
  console.log("left release");
});

dancemat.on("up:press", function(key) {
  console.log("up press");
});

dancemat.on("down:press", function(key) {
  console.log("down press");
});

dancemat.on("up:release", function(key) {
  console.log("up release");
});

dancemat.on("down:release", function(key) {
  console.log("down release");
});

dancemat.on("circle:press", function(key) {
  console.log("circle press");
});

dancemat.on("circle:release", function(key) {
  console.log("circle release");
});

dancemat.on("cross:press", function(key) {
  console.log("cross press");
});

dancemat.on("cross:release", function(key) {
  console.log("cross release");
});

dancemat.on("triangle:press", function(key) {
  console.log("triangle press");
});

dancemat.on("square:press", function(key) {
  console.log("square press");
});

Copyright (c) 2013 Andrew Nesbitt. See LICENSE for details.

FAQs

Package last updated on 10 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts