Interface for Wired Xbox 360 game controller into node (wip)
Lots of low level details about the controller here:
- http://free60.org/GamePad
- http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/UsbInfo
- http://euc.jp/periphs/xbox-controller.ja.html
Mac OSX driver: http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver
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)
})
- rumble control
- led control
Copyright (c) 2013 Andrew Nesbitt. See LICENSE for details.