Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectInput haptics don't work on Logitech F710 #1875

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

DirectInput haptics don't work on Logitech F710 #1875

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.3
Reported for operating system, platform: Windows 8, x86_64

Comments on the original bug report:

On 2015-06-05 00:13:05 +0000, wrote:

I bought a Logitech F710 just to test out the haptic support for DirectInput in SDL, and sadly it does not work. Testhaptic.exe detects the effects and tries to play a sine effect, but errors out saying that the effect cannot be created. Basic rumble does work when the device is in XInput mode, so I'm guessing it isn't a problem with the joystick. I have the Logitech Gaming Software installed and haptics work in their test as well.

I also tried nabbing the latest code from the HG repository from after the separation of the DInput and XInput code, but that failed as well. The problem seems to be in the CreateNewEffect call to DirectInput that errors out with an INVALIDPARAM.

On 2015-06-05 16:56:35 +0000, Joe Thompson wrote:

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.

On 2015-06-11 04:00:07 +0000, wrote:

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.

On 2015-06-16 05:03:27 +0000, Ryan C. Gordon wrote:

Assigning Edgar's bugs to me.

--ryan.

On 2017-06-03 20:49:02 +0000, Trent Gamblin wrote:

Created attachment 2749
Fix

On 2017-06-03 20:50:38 +0000, Trent Gamblin wrote:

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

On 2017-06-20 20:15:39 +0000, Trent Gamblin wrote:

Any chance you're going to apply this fix?

On 2017-06-21 05:22:30 +0000, Ryan C. Gordon wrote:

This patch is now https://hg.libsdl.org/SDL/rev/db5c09aa4fd4, thanks!

--ryan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant