tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.26k stars 901 forks source link

Joystick USB HID device - changing identity #4179

Closed andrewfstratton closed 7 months ago

andrewfstratton commented 7 months ago

Firstly it's great to have so much working already...

When I use https://pkg.go.dev/github.com/tinygo-org/tinygo/src/machine/usb/hid/joystick this works fine but has an issue with identification/description, e.g.

Suggestion:

sago35 commented 7 months ago

The following may be of some assistance to you.

https://github.com/SWITCHSCIENCE/ffb_steering_controller/ https://github.com/SWITCHSCIENCE/ffb_steering_controller/blob/93c76de0c67f00f1dda0c8022c9cb2f45eb603db/control/wheel.go#L17-L30

andrewfstratton commented 7 months ago

I now no longer think the identity needs to change - I may add a different issue later - I'm still testing the default descriptor and trying to get one working beyond the browser test page I was using...