Ryujinx-SDL/src/haptic/windows
Sam Lantinga 7379991778 Fixed bug 3446 - The haptic API does not allow to select the direction axes
Mathieu Laurendeau

Consider a device supporting effects on multiple axes.
There's currently no way to play effects against a single-axis direction.


A device supporting effects against X and Y may not allow to play effects with a two-axis direction coordinate, even if one of the coordinates is null.

My current (ugly) work around for this is to add a direction type SDL_HAPTIC_X_FORCE to play effects against a X-axis only direction (patch attached).

This issue impacted two GIMX users using the following wheels:
- Leo Bodnar SimSteering force feedback wheel
- Accuforce direct drive wheel

Playing constant/spring/damper effects against a X-axis direction worked well for the first wheel, but not for the second one.

A better strategy seems to play the effects against the first axis reported by the DirectInput enumeration.

This strategy also works with Logitech wheels (at least the DFGT).

It's been more than a year that I have the latest patch (playing effects against the first axis only) in the GIMX software. It's being used by thousands of people, mostly for adapting their FFB wheel to the PS4. I had no report that proves this strategy to be wrong.
2020-03-16 13:28:38 -07:00
..
SDL_dinputhaptic_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dinputhaptic.c Fixed bug 3446 - The haptic API does not allow to select the direction axes 2020-03-16 13:28:38 -07:00
SDL_windowshaptic_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_windowshaptic.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_xinputhaptic_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_xinputhaptic.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00