#868·gobot

Joystick:does not run properly on windows

Author: wushu037Created Oct 18, 2022Updated Nov 1, 2024
Labelsbug

Thanks a lot for providing the joystick library, it works fine on Mac, but there are exceptions on windows

environment

  • I used the sample code from joystick's readme to run
  • gobot v1.16.0
  • go1.18

compilation warning joystick relies on go-sdl2, and this warning occurs when it is compiled cross-platform from Mac to Windows and directly on Windows. image

For this warning. I raised an issue with go-sdl2, and later I replaced it with 0.4.25 as suggested, and the warning disappeared. So maybe joystick should update the version of go-sdl2

running exception I'm using Xbox Wireless Controller (xsx2020) and it only occasionally listens to the trigger button, but not to all other keys!

I also tried to run scanner.go, but it quits immediately image