Hotrian / OpenVRTwitchChat

Put your favorite Twitch Chat directly into any OpenVR game!
Other
173 stars 50 forks source link

Device Dropdown should only list available devices #5

Closed Hotrian closed 8 years ago

Hotrian commented 8 years ago

The title pretty much says it. Right now the Device Dropdown lists both controllers even if only one, or neither is detected. A future version will fix this.

Hotrian commented 8 years ago

This shouldn't change any functionality when both controllers are connected, but when only one controller is detected the "Swap Controllers" button now correctly selects the device in the Device Dropdown by it's new name automatically. This is because the name changes, but with only one device available the overlay is still going to be on the same controller index internally.

When both controllers are connected, the selected device does not change, only it's internal index. This causes the "Swap Controllers" button to automatically swap devices in VR, even though the selected device does not change.

This should only apply when you have a controller selected, since you shouldn't be able to hit Swap Controllers without selecting a controller in the Device Dropdown.