Socket
Book a DemoInstallSign in
Socket

guitar-controller

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guitar-controller

Easy to use event interface to a RedOctane (Guitar Hero) controller

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

guitar-controller

Interface to a Guitar Hero controller.

usage

var controllers = require('guitar-controller')();
var player1 = controllers[0];

player1.on('green.press', function() {
    console.log('green was pressed');
});

player1.on('green.release', function() {
    console.log('green was released');
});

See the example.js file for more detailed usage.

API

Buttons:

The controller has the following buttons:

  • green
  • red
  • yellow
  • blue
  • orange
  • start
  • back
  • up
  • down
  • left
  • right
  • xbox

For each button, a press and release event exist:

  • green.press
  • green.release
  • red.press
  • red.release
  • yellow.press
  • yellow.release
  • blue.press
  • blue.release
  • orange.press
  • orange.release
  • start.press
  • start.release
  • back.press
  • back.release
  • up.press
  • up.release
  • down.press
  • down.release
  • left.press
  • left.release
  • right.press
  • right.release
  • xbox.press
  • xbox.release
Ranges:
  • x
  • y
  • whammy

Range events receive a value. For example:

player1.on('x', function(val) {
    console.log(val);
});

examples

  • Plug in the guitar's USB cable.
  • node [script] to test scripts in examples folder.
  • Click buttons on your remote and commence mad science.

contribution

If you have a Guitar Hero controller that isn't supported, plug your controller in and run examples/explorer.js. Create an issue and paste in the console results. Pull requests welcome.

FAQs

Package last updated on 07 Mar 2015

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.