I have a male to male USB cable and to experiment a bit I have the idea of using the PC to intercept the data sent by a PS4 control to the console.
I want the flow to be as follows:
Control---------->PC------------->PS4.
That is to say that it passes first by the PC and it is this one that sends the data to the console.
I'm currently getting the Control data with the node-hid library as follows:
device.on("data", function(data) {
console.log(data);
// enviar datos a la consola
});
Is it possible to take that data and send it through another USB port?
I think I need to add another library for what I want but I'm a little lost.