| Summary: | DirectInput haptics don't work on Logitech F710 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | hemimg |
| Component: | haptic | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus, mini_joe, trent |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 8 | ||
| Attachments: | Fix | ||
|
Description
hemimg
2015-06-05 00:13:05 UTC
I experience something related with the Logitech MOMO Racing wheel. In addition, SDL_HapticOpenFromJoystick() fails with SDL_Error: "Haptic error Setting cooperative level to exclusive", The device can be opened via SDL_HapticOpen(), but then I see the CreateNewEffect error described here. I have tried with 2.0.0, 2.0.1, 2.0.2, 2.0.3, & tip. None work. I downloaded the Motioninjoy driver for my Dual Shock 3 that allows it to operate in DirectInput mode with rumble support and I get the same error. So it doesn't seem to be specific to the Logitech. Assigning Edgar's bugs to me. --ryan. Created attachment 2749 [details]
Fix
I've found this bug as well, the problem is the XInput haptics driver takes values maxing out at 64K while SDL maxes at 32K. There IS a very faint rumble but it's barely noticable. I attached a patch that fixes the problem. More info here: https://discourse.libsdl.org/t/patch-low-magnitudes-with-xinput-haptics/22551 Any chance you're going to apply this fix? This patch is now https://hg.libsdl.org/SDL/rev/db5c09aa4fd4, thanks! --ryan. |