| Summary: | Can't get raw value of a hat | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sjoerd Simons <sjoerd.simons> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Sjoerd Simons
2020-01-28 13:07:40 UTC
For these kinds of devices, the hats should be exposed as axes. SDL currently doesn't do that, but if you can tell whether a hat is a POV vs a trigger, feel free to submit a patch that does this. If you don't feel comfortable doing this, you can include the kernel version that you're seeing this with and a link to purchase a device that shows up this way, and I'll take a look when I have time. It's a driver for a device not yet available from retail; Tbh i switched over to using the more normal Z axis for the triggers and got a patch pending to submit to the linux kernel to change the "standard" to match. In practise there don't seem any device using the hat event codes for triggers in the kernel and likely because to that it leads to a bunch of issues with programs/frameworks trying to use it (SDL is not the only one here it seems). So imho this can be closed Okay, thanks for the update! |