| Summary: | Rumble broken with dualshock3 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | orbea |
| Component: | haptic | Assignee: | Ethan Lee <flibitijibibo> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | orbea |
| Version: | 2.0.9 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Fix Linux periodic rumble support | ||
|
Description
orbea
2018-12-06 15:40:11 UTC
Also links to the affected projects, this issue was reproduced with the current git master for both of them. https://gitlab.com/sdl-jstest/sdl-jstest https://github.com/mupen64plus/mupen64plus-input-sdl testrumble still works. INFO: 1 Haptic devices detected. INFO: Device: Sony PLAYSTATION(R)3 Controller INFO: Playing 2 second rumble at 0.5 magnitude. INFO: Stopping rumble. INFO: Playing 2 second rumble at 0.3 magnitude testjoystick prints. INFO: There are 1 joysticks attached INFO: Joystick 0: Sony PLAYSTATION(R)3 Controller INFO: type: Game Controller INFO: axes: 6 INFO: balls: 0 INFO: hats: 0 INFO: buttons: 17 INFO: instance id: 0 INFO: guid: 030000004c0500006802000011810000 INFO: VID/PID: 0x054c/0x0268 Ethan, can you take a look at this? Thanks! Created attachment 3533 [details]
Fix Linux periodic rumble support
Dangit, even Linux wasn't consistent here - left/right is u16 but periodic is s16. I only have left/right devices so I didn't catch this at the time. Patch is attached.
I tested the attached patch against master and rumble works with both my test cases again, thanks! This is now fixed. Thank you for the quick fix! |