But since SDL_SensorType is not defined in sdl 2.0.8 this results in a compiler error.
../../.go/pkg/mod/github.com/veandco/go-sdl2@v0.4.21/sdl/gamecontroller.go:227:86: error: unknown type name 'SDL_SensorType'; did you mean 'SDL_EventType'?
static float SDL_GameControllerGetSensorDataRate(SDL_GameController *gamecontroller, SDL_SensorType type)
A simple fix would be to typedef SDL_SensorType in gamecontroller.go if the version is not at least 2.0.14
go-sdl2 0.4.21 references SDL_SensorType in sdl/gamecontroller.go like so:
But since SDL_SensorType is not defined in sdl 2.0.8 this results in a compiler error.
A simple fix would be to typedef SDL_SensorType in gamecontroller.go if the version is not at least 2.0.14