Easy way to read USB device crossplatform with Go?

Is there an easy way to read an USB gamepad controller crossplatform with go?

The program needs to run on Linux ARM and AMD64 Windows and AMD64 Mac OS X…

Thanks for your hints and advices.

Write the source and target your build for each OS: https://golang.org/pkg/go/build/

1 Like

I think I will start just ARM Linux first and see all how all goes… Thanks for the help :wink:

A USB package like google/gousb might help (or search GitHub for “language:go usb” and review the results depending on your needs).

1 Like

I asked on reddit I think this looks promising: https://github.com/loov/zombies-on-ice/blob/master/input.go

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.