Page MenuHomeFreeBSD

hid: move proper hat switch handling from ps4dshock to hgame
ClosedPublic

Authored by val_packett.cool on Aug 3 2021, 4:42 PM.
Tags
None
Referenced Files
F163827449: D31398.id93184.diff
Sun, Jul 26, 10:50 AM
Unknown Object (File)
Fri, Jun 26, 7:11 PM
Unknown Object (File)
Jun 26 2026, 7:51 AM
Unknown Object (File)
Jun 21 2026, 9:38 PM
Unknown Object (File)
Jun 20 2026, 9:43 AM
Unknown Object (File)
Jun 13 2026, 12:58 AM
Unknown Object (File)
Jun 5 2026, 11:01 PM
Unknown Object (File)
Jun 5 2026, 8:04 PM

Details

Summary

Generic "DirectInput" HID gamepads need this handling too.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Which devices it was tested on?

I found out that WebHID wants to do the same thing https://github.com/w3c/gamepad/issues/56 but did not find any docs describing HAT_SWITCH usage in DirectInput mode.

This revision is now accepted and ready to land.Aug 3 2021, 10:15 PM

Tested on a no-name cheap gamepad that literally says "acme" on it, confirmed to match Linux behavior.