| Summary: | [OpenBSD] fix D-pad | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Thomas Frohwein <tfrohwein> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | JvsqfI8ZY2hr |
| Version: | HG 2.0 | Keywords: | target-2.0.10 |
| Hardware: | x86_64 | ||
| OS: | OpenBSD | ||
| Attachments: |
diff to implement dpad for gamepads on OpenBSD
Fix logic of dpad events |
||
|
Description
Thomas Frohwein
2018-12-28 17:05:04 UTC
Tagging a bunch of bugs with "target-2.0.10" so we have a clear list of things to address before a 2.0.10 release. Please note that "addressing" one of these bugs might mean deciding to defer on it until after 2.0.10, or resolving it as WONTFIX, etc. This is just here to tell us we should look at it carefully, and soon. If you have new information or feedback on this issue, this is a good time to add it to the conversation, as we're likely to be paying attention to this specific report in the next few days/weeks. Thanks! --ryan. Patch added, thanks! https://hg.libsdl.org/SDL/rev/64dabb27041d Hi, this patch breaks dpad/hat input on my PS4 controller. The attached patch restores functionality. Calling SDL_PrivateJoystickHat() at the end of BSD_JoystickUpdate was setting the hat state to zero on every kind of input, instead of just the HUG_DPAD events. Created attachment 3840 [details]
Fix logic of dpad events
(In reply to daniel.c.sinclair from comment #4) > Created attachment 3840 [details] > Fix logic of dpad events Thanks for reporting this unintended regression! Tested your diff with the Xbox 360 controller and it still works. While I can't reproduce the breakage and fix with the gamepads that I possess, this diff has my endorsement over the original one given that it reportedly fixes at least the PS4 controller, maybe others too... Patch added, thanks! https://hg.libsdl.org/SDL/rev/0c19a7239a95 |