node-hid
is now an optional peer dependency, simplifying the use of this library in the browser.
Node.js users will need to add node-hid
as a dependency.
The constructor no longer throws when a Dualsense controller is unavailable. It will keep attempting to connect in the background. A new input is provided for monitoring the connection state.
In v2, inputs were EventEmitters. In v3 a new, similar class is used, but the API differs slightly.
If you are using unavailable EventEmitter features or relying on instanceof EventEmitter
, you will need to refactor accordingly.
Version 2 adds an abstraction over the node-hid
interface; if you were accessing it directly, you'll need to refactor accordingly.