|
@@ -794,6 +794,11 @@ glfwUpdateGamepadMappings(mappings);
|
|
This function supports everything from single lines up to and including the
|
|
This function supports everything from single lines up to and including the
|
|
unmodified contents of the whole `gamecontrollerdb.txt` file.
|
|
unmodified contents of the whole `gamecontrollerdb.txt` file.
|
|
|
|
|
|
|
|
+If you are compiling GLFW from source with CMake you can update the built-in mappings by
|
|
|
|
+building the _update_mappings_ target. This runs the `GenerateMappings.cmake` CMake
|
|
|
|
+script, which downloads `gamecontrollerdb.txt` and regenerates the `mappings.h` header
|
|
|
|
+file.
|
|
|
|
+
|
|
Below is a description of the mapping format. Please keep in mind that __this
|
|
Below is a description of the mapping format. Please keep in mind that __this
|
|
description is not authoritative__. The format is defined by the SDL and
|
|
description is not authoritative__. The format is defined by the SDL and
|
|
SDL_GameControllerDB projects and their documentation and code takes precedence.
|
|
SDL_GameControllerDB projects and their documentation and code takes precedence.
|