| Summary: | SDL_JoystickGetButton() always returns 0 for PS4 controller's "square" button | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Brandon <caibbor> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.2 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Brandon
2016-02-18 00:25:35 UTC
I have not noticed any other button that does this, although I have not thoroughly tested every one. Also, the SDL input events are triggered just fine, so this doesn't appear to be a defective controller (which is also brand new). I have worked around this problem temporarily by making a simple array of bools that I change based on the SDL press/release events. After some investigation, it seems as though SDL_JoystickGetButton() isn't using the button mapping that the new Controller system has remapped the buttons to. I suppose there's some other function, such as SDL_ControllerGetButton or something like SDL_GetControllerMappingForJoystickButton or something. To the google... I'm going on the assumption which I posted a few minutes ago and marking this as resolved/invalid. |