All Projects â†’ andrew â†’ node-wii-controller

andrew / node-wii-controller

Licence: MIT License
🎮 [UNMAINTAINED] Interface for Wiimote game controller into Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Node Wii Controller

Interface for Wiimote game controller into Node.js

Mac OSX driver: https://code.google.com/p/wjoy/

Usage

var wiiController = require('wii-controller')
var wii = new wiiController

wii.on("CWIID_BTN_1:press", function(key) {
  console.log("CWIID_BTN_1 press");
});

wii.on("CWIID_BTN_2:press", function(key) {
  console.log("CWIID_BTN_2 press");
});

wii.on("CWIID_BTN_HOME:press", function(key) {
  console.log("CWIID_BTN_HOME press");
});

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

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

wii.on("CWIID_BTN_RIGHT:release", function(key) {
  console.log("CWIID_BTN_RIGHT release");
});


wii.on("CWIID_BTN_A:press", function(key) {
  console.log("CWIID_BTN_A press");
});

wii.on("move", function(position) {
  console.log("move", position);
});

TODO

  • rumble control
  • LED control
  • motion output

Copyright

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].