OpenStickCommunity / OpenStickCommunity/GP2040-CE

Ability to set VID/PID individually for Xinput / USB HID

Open
#1,576 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
2.5k
Forks
666
Avg merge
1d 19h
Merged PRs (30d)
7

Description

Problem

Using the override of the USB IDs is very useful in several context, allowing the user to have several GP-2040 based controller that present themselves as different devices to the system they are connecting to.

Unfortunately though, the behaviour of such systems is not consistent, and a certain HID device with certain VID and PID might work wonder on a - let's say - Linux system, and not at all on a windows PC.

Solution

It would be awesome if the input mode might also alter the PID and VID at the same time.

Like, generic HID would be configured to show with VID 046D and PID C216,
while xinput would just present itself with the default VID and UID.

Do you plan to work on this feature yourself?

I am unfortunately unable to despite having tried hard. I wasn't even able to configure the bloody PICO IDE in months I'm afraid

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how input modes select USB identities, focusing on the XInput and generic HID paths and the existing USB ID override configuration. Verify how VID and PID values are applied during enumeration. Done means each input mode can present its own configured VID/PID, with generic HID and XInput independently showing the intended identities.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.