Set Logitech Steering Wheel position/angle from SDL?

馋奶兔 提交于 2019-12-08 00:44:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!