node-gamecontroller icon indicating copy to clipboard operation
node-gamecontroller copied to clipboard

this._hid.disconnect is not a function

Open JohanWinther opened this issue 6 years ago • 3 comments

When using the xplorer guitar, calling .close() will generate an error. Looking at the _hid property I can see that there is no such function.

https://github.com/infusion/node-gamecontroller/blob/deebd1c58ce81e900814e63d18569f06daf102f7/gamecontroller.js#L94

JohanWinther avatar Nov 25 '18 11:11 JohanWinther

It seems they renamed the function to close(). Hmpf, thanks for the hint!

infusion avatar Nov 25 '18 11:11 infusion

I fixed it, thanks!

infusion avatar Nov 25 '18 11:11 infusion

Could you also update the NPM package?

JohanWinther avatar Nov 30 '18 10:11 JohanWinther