node-dualshock-controller icon indicating copy to clipboard operation
node-dualshock-controller copied to clipboard

Multiple Controllers

Open tlee732 opened this issue 8 years ago • 1 comments

I'm trying to connect multiple dual-shock controllers but can't find where the HID is being implemented. I want to search for HID devices, and create new controllers based on path.

tlee732 avatar Apr 17 '17 18:04 tlee732

Hey @tlee732, I did not think to add multiple controller support. The following are the connecting pieces that the library uses to choose the device to connect to:

[The config has a vendorId Device Id combo] (https://github.com/rdepena/node-dualshock-controller/blob/master/controllerConfigurations/dualShock4.json#L2)

That is used to query the list of connected devices, Actual filter function.

The filter function could be modified to accept a path as well but you would have to know the path and feed it to the library.

rdepena avatar Apr 18 '17 03:04 rdepena