Skip to content

Conversation

@ludokx
Copy link
Collaborator

@ludokx ludokx commented Jan 19, 2023

This should take care of duplicate controllers and filters out some devices listed by hidapi like the steam controllers (USB) and the touchpad. It might bubble up some unexpected devices though but we can filter those out maybe as needed. But at least with this we can display controllers more generically and get Stadia support working

@ludokx ludokx requested a review from jfernandez January 19, 2023 06:04
"discharging".to_string()
} else {
"unknown".to_string()
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we don't detect whether the Stadia controller is charging atm?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, I'll have to dig deeper to see if we can detect it. If so I'll update the code. For now we'll keep it to unknown

@ludokx ludokx merged commit a855f72 into main Jan 19, 2023
@ludokx ludokx deleted the generic branch January 19, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants