veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.2k stars 219 forks source link

Joystick event IDs are different on Raspberry Pi, you need to update to kernel 4.14+ #352

Open deadprogram opened 6 years ago

deadprogram commented 6 years ago

Just was trying out my usual Dualshock3 clone on a fresh install of Raspbian with SDL2 2.0.8 installed, and spent a few hours utterly confused on why my joystick mappings were all wrong vs. my notebook.

Finally noticed that my dev machine was running 4.14, and the Rasp was running 4.9 so I thought to update the Raspian using rpi-update. Rebooted, and then the joystick mappings worked as expected.

This is just a warning to whomever might run into this problem. Perhaps the go-sdl docs could reflect this somewhere?

veeableful commented 6 years ago

Interesting. Thanks for reporting this behavior! If it's not too troublesome, could you elaborate on what happened? I'll add what you wrote into the docs.