Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

andrew/node-wii-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🎮 [UNMAINTAINED] Interface for Wiimote game controller into Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published