Skip to content

chiefcll/node-xbox-controller

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Interface for Xbox 360 game controller into node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%