This PR just ties into the node-hid error event and bubbles it up. If a controller is disconnected after being connected and having listeners setup it will throw a native error which isn't super easy to recover from plus since it's uncaught it bubbles up to electron. By tying into this event disconnects can be handled a bit more gracefully.
This PR just ties into the node-hid error event and bubbles it up. If a controller is disconnected after being connected and having listeners setup it will throw a native error which isn't super easy to recover from plus since it's uncaught it bubbles up to electron. By tying into this event disconnects can be handled a bit more gracefully.