Skip to content

Gamepad type/brand #11

Open
Open

Description

@buestad

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

Activity

  1. Zuzu-Typ commented on Mar 14, 2024

    @Zuzu-Typ
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions