Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamepad type/brand #11

Open
buestad opened this issue Mar 14, 2024 · 1 comment
Open

Gamepad type/brand #11

buestad opened this issue Mar 14, 2024 · 1 comment

Comments

@buestad
Copy link

buestad commented Mar 14, 2024

Is there a way to know which type/brand of gamepad is connected? (Logitech, X-box ...) I want to change the button layout in the GUI based on gamepad type

@Zuzu-Typ
Copy link
Owner

Hi @buestad,
Unfortunately there isn't any straightforward way to do this.
Although there is an XInput function that allows you to get vendor information provided by Microsoft, it's undocumented and therefore might not be future proof or safe to use.
See https://stackoverflow.com/questions/64251320/is-it-possible-to-get-an-xinput-devices-name-product-id-vendor-id-or-some-oth

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

No branches or pull requests

2 participants