Julusian / node-elgato-stream-deck

A Node.js library for interfacing with the Elgato Stream Deck. https://julusian.github.io/node-elgato-stream-deck/
https://www.npmjs.com/org/elgato-stream-deck
MIT License
160 stars 21 forks source link

Add native .forget() event #79

Closed Kivylius closed 5 months ago

Kivylius commented 8 months ago

Native HID event have a .forget event, that disconect the device complety, allowing the user to connect with a difference device. Here the docs:

https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/forget

We current have .close event, but this event still remember the device and only closes the connection.


Alternatively just expose the .device var and let users mess with it as so they please.

Hope that makes sense. I can help raise the PR.

Julusian commented 5 months ago

This is in v6.1.0