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

Raspbian / Raspberry Pi Compatibility #21

Closed JamieKnight closed 10 years ago

JamieKnight commented 10 years ago

Hiya,

I have been attempting to use this package on the raspberry pi, but i have had no luck. Everything install correctly, but it is unable to see the controller.

I have installed the xboxdrv driver.

If i run:

$ lsusb -l

I can see the controller. But if i run:

var HID = require('node-hid')
console.log(HID.devices())

It does not show the device.

I have cloned and installed node-hid into its own directory and the show-devices.js script also fails to see any devices.

Do you have any suggestions?

Cheers,

Jamie + Lion

JamieKnight commented 10 years ago

Hiya,

I kept digging, this appears to be a known issues with the underlying HIDAPI library under debian and its friends. I ended up taking a simpler, but less portable solution (see: http://jkg3.com/Journal/accessing-xbox-controller-events-in-nodejs-on-a-raspberry-pi) As this issue is upstream, i will mark this issue as closed.

Cheers,

Jamie + Lion