joetex / stream-racing-wheel

Logitech G920 Racing Wheel Overlay for Streaming, as a React Webpage
24 stars 11 forks source link

Add support for two simultaneous controllers? Or are any conflicts expected running in two browsers simultaneously? #12

Open cr08 opened 8 months ago

cr08 commented 8 months ago

Just came across this project and looks amazing. I'm starting to dabble in some Euro/American Truck Sim stuff. In that space there are replacement shifter knobs for common wheel setups that adds extra inputs for the range/splitter functions (and in the case of the one I have, an extra push button for whatever). But these act as their own separate game controller from the wheel/pedals/shifter 'controller'. I'm not sure about all iterations that exist on the market but mine simply shows as 3 button inputs and that's it. On the shifter knob itself, it has two toggle switches with up being on, down being off.

Any chance support for two simultaneous controllers could be added for this? Or will it work running in two separate browser windows with each set for a different controller? I'd be willing to use that as a workaround.

joetex commented 8 months ago

Could you test setting them up on two different tabs or browsers? I do allow you to select which controller, so it should let you do it, theoretically.

cr08 commented 8 months ago

Finally had the opportunity to set things up and test. At first glance, it doesn't seem to be properly registering the inputs for the range/splitter inputs on the second controller. The dropdown to select the controller is there but if I select it, all the inputs still seem to register from the G920.

Additionally if I disconnect the G920 and leave just the shifter knob connected and refresh the page, the moment I trigger an input the screen goes blank and I get the following errors from the console:

image