Skip to content

Correct handling of missing usages - #30

Open
pasccom wants to merge 3 commits into
usb-tools:mainfrom
pasccom:main
Open

pasccom wants to merge 3 commits into
usb-tools:mainfrom
pasccom:main

Conversation

@pasccom

@pasccom pasccom commented Nov 17, 2026

Copy link
Copy Markdown

This is implemented according to the Device Class Definition for HID version 1.11: In the remarks in section 6.2.2.8, it is stated:

While Local items do not carry over to the next Main item, they may apply to
more than one control within a single item. For example, if an Input item
defining five controls is preceded by three Usage tags, the three usages would
be assigned sequentially to the first three controls, and the third usage would
also be assigned to the fourth and fifth controls."
In the case of extra usages, a warning could be considered as in the current implementation, but this is not implemented in this proposal.

The PR also includes a .gitignore file and updates workflow files and nox file (python 3.9 is not supported anymore and python 3.14 and 3.15 have been added).
It could be interesting to clean the python 3.8 session in the nox file, but this is not implemented in this proposal.

This is implemented accoring to the "Device Class Definition for HID"
version 1.11: In the remarks in section 6.2.2.8, it is stated:
"While *Local* items do not carry over to the next *Main* item, they may apply to
more than one control within a single item. For example, if an *Input* item
defining five controls is preceded by three *Usage* tags, the three usages would
be assigned sequentially to the first three controls, and the third usage would
also be assigned to the fourth and fifth controls."
@pasccom
pasccom requested a review from FFY00 as a code owner November 17, 2026 21:05
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

Successfully merging this pull request may close these issues.

1 participant