Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.14 KB

Readme.md

File metadata and controls

47 lines (32 loc) · 1.14 KB

Node Xbox Controller

Interface for Wired Xbox 360 game controller into node (wip)

Lots of low level details about the controller here:

Mac OSX driver: http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver

Usage

var xbox = new XboxController

xbox.on('a:press', function (key) {
  console.log(key + ' press');
});

xbox.on('b:release', function (key) {
  console.log(key+' release');
});

xbox.on('lefttrigger', function(position){
  console.log('lefttrigger', position)
})

xbox.on('righttrigger', function(position){
  console.log('righttrigger', position)
})

xbox.on('left:move', function(position){
  console.log('left:move', position)
})

xbox.on('right:move', function(position){
  console.log('right:move', position)
})

TODO

  • rumble control
  • led control

Copyright

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