| Summary: | SDL_GameController: Increase k_nMaxReverseEntries | ||
|---|---|---|---|
| Product: | SDL | Reporter: | ny00 |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
| Attachments: | Patch | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/c5b42350ccbb Agreed on your side note. Would you like to submit another bug and patch to cover that? (In reply to Sam Lantinga from comment #1) > Fixed, thanks! > https://hg.libsdl.org/SDL/rev/c5b42350ccbb Great, more game controllers' features should be usable now! > Agreed on your side note. Would you like to submit another bug and patch to > cover that? Done! See bug 3438. |
Created attachment 2561 [details] Patch On Android, the keycodes KEYCODE_BUTTON_1..16 (actual values 188-203) are translated to SDL_Joystick buttons no. 20-35. These are currently ignored in SDL_gamecontroller.c. The attached patch fixes this, by increasing k_nMaxReverseEntries from 20 to another arbitrary bound of 48. Side-note: Maybe some log should be emitted in case of going over any such bound?