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

Devices without product names causes error #17

Closed neocotic closed 10 years ago

neocotic commented 10 years ago

I was seeing errors being thrown when some the results of HID.devices() did not have a product field. I've made a minor fix that supports this case.

andrew commented 10 years ago

Thanks @neocotic

EricSmekens commented 10 years ago

Please create a new version for this, and upload it to npm, it fixes the problem for me aswell.

andrew commented 10 years ago

I've published this as part of v0.4.3: https://github.com/andrew/node-xbox-controller/releases/tag/v0.4.3