You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached diff fixes this and makes the D-pad on my Xbox 360 and Logitech F310 controllers usable. It adds a hat to nhats when usage HUG_DPAD_UP is found, reads the state of the D-pad buttons into array dpad[], and turns the value of dpad[] into an SDL hat direction (dpad_to_sdl()).
Tested and works with Xbox 360 controller and Logitech F310 in XInput mode. Software-side tested with sdl2-jstest and Owlboy where this worked without problems or regressions.
I don't know if this would be applicable to other *BSDs and don't have an install to test it with, therefore wrapped it in OpenBSD ifdefs.
Thanks,
thfr
On 2019-05-18 18:48:55 +0000, Ryan C. Gordon wrote:
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.
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.
On 2019-06-23 02:22:44 +0000, wrote:
Created attachment 3840
Fix logic of dpad events
On 2019-06-23 04:42:11 +0000, Thomas Frohwein wrote:
(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...
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: OpenBSD, x86_64
Comments on the original bug report:
On 2018-12-28 17:05:04 +0000, Thomas Frohwein wrote:
On 2019-05-18 18:48:55 +0000, Ryan C. Gordon wrote:
On 2019-05-19 18:56:42 +0000, Sam Lantinga wrote:
On 2019-06-23 02:21:12 +0000, wrote:
On 2019-06-23 02:22:44 +0000, wrote:
On 2019-06-23 04:42:11 +0000, Thomas Frohwein wrote:
On 2019-07-01 05:48:35 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: