Skip to content

Add support for my controller #3

Description

@ulao

If you want the app to detect and know your controller the ID is needed.

i.e
vendorId = 0x045
productId = 0x028E

and what type of controller it is. The oem stuff should be known, but the 3rd party controllers will not. It just gets added to this case
if (hid.vendorId == 0x054c && hid.productId == 0x05c4) currentController = name = "playstation4";
if (hid.vendorId == 0x054c && hid.productId == 0x0268) currentController = name = "playstation";
if (hid.vendorId == 0x045e && hid.productId == 0x02ff) currentController = name = "xboxone";
if (hid.vendorId == 0x0e6f && hid.productId == 0x0201) currentController = name = "xbox360";
if (hid.vendorId == 0x0e6f && hid.productId == 0x028E) currentController = name = "xbox360";
if (hid.vendorId == 0x045E && hid.productId == 0x028E) currentController = name = "xbox360";
if (hid.vendorId == 0x045e && hid.productId == 0x0289) currentController = name = "xboxog";
if (hid.vendorId == 0x045e && hid.productId == 0x0285) currentController = name = "xboxog";
if (hid.vendorId == 0x045e && hid.productId == 0x0202) currentController = name = "xboxog";

Feel free to just drop the info in here.

Activity

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