Skip to content

Conversation

deadprogram
Copy link
Member

This PR refactors the HID report descriptor creation in machine/usb/descriptor to make it a lot easier.

Note that this PR depends on #3692 which needs to be merged first and then this one rebased.

@deadprogram deadprogram changed the title Usb hid report machine/usb/descriptor: refactor HID report descriptor creation Apr 28, 2023
@deadprogram deadprogram requested a review from sago35 April 28, 2023 19:28
deadprogram added a commit to deadprogram/pico-ffb-steering-wheel that referenced this pull request Apr 28, 2023
This is untested but should be more or less how to create HID report descriptors more easily using tinygo-org/tinygo#3693
@deadprogram
Copy link
Member Author

I added one more commit to mare easily handle larger values, and to replace a bunch of "magic numbers" with const values.

@sago35 please take a look.

@deadprogram
Copy link
Member Author

Rebased against dev. Now ready for review.

@deadprogram
Copy link
Member Author

@sago35 did you have a chance to try this out yet?

@sago35
Copy link
Member

sago35 commented May 3, 2023

I can review tomorrow. Just give me a few minutes.

Copy link
Member

@sago35 sago35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Checks using examples/hid-joystick were run on a macropad-rp2040.
I think it's very good.

https://luser.github.io/gamepadtest/

@deadprogram
Copy link
Member Author

Thank you for the review @sago35 now merging.

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.

2 participants