SDL2/Win32: ForceFeedback SDL_POLAR not working on Steering |
mungewell
|
After reading around on this I have come to the conclusion that 1-Axis devices can not accept POLAR effects under DirectX. No 'firm' statement/definitions but a couple of inferences: http://msdn.microsoft.com/en-us/library/windows/desktop/ee417536%28v=vs.85%29.aspx -- Single-Axis Effects Setting up the direction for a single-axis effect is easy because there is nothing to specify. Put the DIEFF_CARTESIAN flag in the dwFlags member of the DIEFFECT structure and set rglDirection to point to a single LONG containing the value 0. -- And 'Fedit' (the .ffe file editor) will automatically convert a 1-axis polar effect to cartesian before playing it back. I can work around this 'feature' in my code, the only real problem is that it would probably mean that the directional properties of a 2D effect could get 'lost' when played back on a 1-axis device. Simon. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||
|