| Summary: | GameController error "Unexpected controller element" | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | don't know | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Sylvain
2018-01-04 08:53:20 UTC
There is a comma "," at the end of each controller line in SDL_gamecontrollerdb.h Not sure if we should be removed them ? Also "sort_controllers.py" always re-add it Fixed in https://hg.libsdl.org/SDL/rev/66498ac4cff7 - Only remove the trailing comma of SDL_gammecontrollerdb.h - fix sort_controllers.py not to add it - fix 1 hard-coded mapping - modify also SDL_CreateMappingForAndroidController() BTW: SDL_gammecontrollerdb.h could also be re-sorted by sort_controllers.py With "diff SDL_gamecontrollerdb.h SDL_gamecontrollerdb.h.new", this line would be moved: "03000000d80400008200000003000000,IMS PCU#0 Gamepad Interface,a:b1,b:b0,back:b4,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,platform:Linux,start:b5,x:b3,y:b2", Re-opened: - probably have to be reverted to avoid crazy merge between various mapping files. Revert SDL_gamecontrollerdb.h and sort_controllers.py: https://hg.libsdl.org/SDL/rev/f9d4bc2af027 Fixed https://hg.libsdl.org/SDL/rev/05aff4771d9a If mapping string is terminated with a comma, there is no more values to parse. |