Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cocoa] Support dpad/POV hat switch [e.g. directional buttons on DualShock] #190

Open
nickolay opened this issue May 6, 2021 · 3 comments

Comments

@nickolay
Copy link

nickolay commented May 6, 2021

This seems to be a known limitation (mentioned in the commit introducing the DS4 buttonmap), but hard to find, unless you know the right terms or take a deep dive into the code.

These are reported as:

  • IOHIDElementGetUsagePage(..) = GENERIC_DESKTOP_USAGE_PAGE (0x01)
  • IOHIDElementGetUsage(..) = 0x39
  • IOHIDValueGetIntegerValue(..) ranging from 0 to 7 indicating eight possible directions and an out-of-range (8 for DS4) value for the unpressed state (as explained here).

...and should end up calling CJoystick::SetHatValue.

One can look into https://bugzilla.mozilla.org/show_bug.cgi?id=1107801 for implementation inspiration.

@garbear
Copy link
Member

garbear commented May 11, 2021

We have a PR for GCController support. @fuzzard how is that one going?

@fuzzard
Copy link

fuzzard commented May 11, 2021

From memory, just had some cleanup to do from comments, just havent followed up on it.

@garbear
Copy link
Member

garbear commented Jul 11, 2024

xbmc/xbmc#18790 was merged back in 2021. Can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants