Use udev to get the manufacturer name if possible (thanks gdb!)

This commit is contained in:
Sam Lantinga
2025-12-21 08:40:21 -08:00
parent 1d51671cbe
commit 4984eb8c16
4 changed files with 46 additions and 0 deletions

View File

@@ -39,6 +39,11 @@ static const SDL_UDEV_Symbols *udev_ctx = NULL;
#define udev_new udev_ctx->udev_new
#define udev_unref udev_ctx->udev_unref
#define udev_hwdb_new udev_ctx->udev_hwdb_new
#define udev_hwdb_unref udev_ctx->udev_hwdb_unref
#define udev_hwdb_get_properties_list_entry udev_ctx->udev_hwdb_get_properties_list_entry
#define udev_list_entry_get_value udev_ctx->udev_list_entry_get_value
#undef HIDAPI_H__
#define HIDAPI_ALLOW_BUILD_WORKAROUND_KERNEL_2_6_39
#include "linux/hid.c"