andrew / node-xbox-controller

:video_game: [UNMAINTAINED] Interface for Xbox 360 game controller into Node.js
http://libraries.io/npm/xbox-controller
MIT License
270 stars 49 forks source link

error: Xbox controller could not be found. #3

Closed kfarr closed 11 years ago

kfarr commented 11 years ago

Seeing "error: Xbox controller could not be found." when attempting to import the library.

However, I can see the xbox controller working fine inside of the controller driver preference panel in OS X. Unsure how to diagnose?

andrew commented 11 years ago

It could be that your xbox controller has a different Human interface device name than on my machine "controller", so this line doesn't find it: https://github.com/andrew/node-xbox-controller/blob/master/lib/xbox.js#L94

It might be worth trying out something like:

var HID = require('node-hid')

console.log(HID.devices())

To see what things are plugged into your computer and how they are named.

kfarr commented 11 years ago

I think you're exactly right, the controller I'm using is an off-brand and has the brand name in the device name. Will experiment again later this week and confirm for sure.

On Jun 3, 2013, at 12:57 AM, Andrew Nesbitt notifications@github.com wrote:

It could be that your xbox controller has a different Human interface device name than on my machine "controller", so this line doesn't find it: https://github.com/andrew/node-xbox-controller/blob/master/lib/xbox.js#L94

It might be worth trying out something like:

var HID = require('node-hid')

console.log(HID.devices())

To see what things are plugged into your computer and how they are named.

— Reply to this email directly or view it on GitHubhttps://github.com/andrew/node-xbox-controller/issues/3#issuecomment-18826678 .

danfinlay commented 11 years ago

You should mark this as closed, I was checking here to see if there were reasons the software didn't work!