| Summary: | No rumble because of integer overflow in SDL_JoystickRumble | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mathieu Eyraud <meyraud705> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.10 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | switch and xinput patch | ||
|
Description
Mathieu Eyraud
2019-12-14 14:25:52 UTC
This actually affects all hidapi drivers and Xinput as they use the same logic. On the Dualshock 4, the rumble motor does not even start. However, on the Xbox One controller the rumble works, maybe because the motor starts spinning faster. Fixed, thanks! https://hg.libsdl.org/SDL/rev/448528dc13da Created attachment 4105 [details]
switch and xinput patch
Switch hidapi and xinput also need to check for overflow, attached a patch for them.
Fixed, thanks! https://hg.libsdl.org/SDL/rev/8d2d9a00fc02 |