SlimeVR-Server icon indicating copy to clipboard operation
SlimeVR-Server copied to clipboard

Detect and use tracker PID during HID enumeration

Open sctanf opened this issue 3 months ago • 4 comments

#1548

sctanf avatar Sep 23 '25 18:09 sctanf

Using tracker's HID directly should be an optional feature. Normally, the job of the server is to pair tracker to the dongle when it's connected, and nothing else. If it will also process data, it will confuse the user since the tracker will be automatically connected, but might not be paired to the dongle...

It needs to be behind a developer option.

Eirenliel avatar Sep 23 '25 18:09 Eirenliel

I think the toggle will likely need to be on the tracker itself (and disabled by default) since having this feature enabled will prevent it from entering pairing automatically. I think it is okay to always detect on the server, as there is currently no way for the server to tell the tracker it is receiving data through the USB connection.

sctanf avatar Sep 23 '25 18:09 sctanf

I think a global setting is better, you can make server accept or not accept connections from this device id if it's enable or disabled. Either way, it should be implemented before it's merged, in whichever way you prefer. Otherwise it breaks intended workflow.

Eirenliel avatar Sep 23 '25 18:09 Eirenliel

Okay, I will still probably need to give trackers a toggle in the meantime

sctanf avatar Sep 23 '25 18:09 sctanf