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
Unknown Object (File)
Dec 19 2025, 1:47 AM
Unknown Object (File)
Dec 2 2025, 6:50 AM
Unknown Object (File)
Nov 27 2025, 8:44 AM
Unknown Object (File)
Nov 27 2025, 7:56 AM
Unknown Object (File)
Nov 17 2025, 10:25 PM
Unknown Object (File)
Nov 16 2025, 9:53 PM
Unknown Object (File)
Nov 15 2025, 6:34 AM
Unknown Object (File)
Oct 20 2025, 3:56 AM

Details

Summary

Generic "DirectInput" HID gamepads need this handling too.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40833
Build 37722: arc lint + arc unit

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.