Add gamepad mapping filtering by backend

This fixes gamepad mappings being included in GLFW binaries that would
then never use them because they were for a different platform.
This commit is contained in:
Camilla Löwy
2021-06-29 00:42:31 +02:00
parent 01778329ec
commit 0c90e1a33f
6 changed files with 39 additions and 20 deletions
+1
View File
@@ -28,6 +28,7 @@
#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE struct { int dummyLibraryJoystick; }
#define _GLFW_PLATFORM_MAPPING_NAME "Windows"
#define GLFW_BUILD_WIN32_MAPPINGS
// Joystick element (axis, button or slider)
//