forked from glfw/glfw
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify parsing of default gamepad mappings
The outer glfwUpdateGamepadMappings function is now bypassed when parsing the default gamepad mappings. The data in mappings.h does not contain any comments or line breaks. Also this is done before joystick support has been initialized, so there is no need to look for matching devices. Finally, the array of default mappings is pre-allocated. This has no measurable performance impact but does generate a lot of calls, which won't be nice for a user provided custom allocator to deal with. (cherry picked from commit 201400b)
- Loading branch information
1 parent
929286c
commit 74a8ba2
Showing
5 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters