diff --git a/src/input.c b/src/input.c index f0e27369..5f107d41 100644 --- a/src/input.c +++ b/src/input.c @@ -102,8 +102,8 @@ static _GLFWmapping* findMapping(const char* guid) return _glfw.mappings + i; } +#if defined(GLFW_BUILD_LINUX_JOYSTICK) // only match vendor product - this = parseGUID(guid); for (int i = 0; i < _glfw.mappingCount; i++) @@ -113,6 +113,7 @@ static _GLFWmapping* findMapping(const char* guid) if (memcmp(&this, &that, sizeof(struct vendor_product)) == 0) return _glfw.mappings + i; } +#endif return NULL; }