I'm writing C code that controls a Logitech gaming wheel using SDL. So far I have successfully implemented the code that sets the steering wheel in autocenter mode with:
SDL_HapticSetAutocenter(haptic, STRENGTH); //set autocenter
I would like to be able to use the motor of the steering wheel to rotate it as desired to particular angle positions. After checking in the documentation of the API, I did not find a simple way to do it.
I wonder if anyone has some advice on this.
来源:https://stackoverflow.com/questions/50665809/set-logitech-steering-wheel-position-angle-from-sdl