XInput-Python icon indicating copy to clipboard operation
XInput-Python copied to clipboard

Gamepad type/brand

Open buestad opened this issue 11 months ago • 1 comments

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

buestad avatar Mar 14 '24 20:03 buestad

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

Zuzu-Typ avatar Mar 14 '24 20:03 Zuzu-Typ