Added SDL_HINT_EVDEV_DEVICES

This commit is contained in:
Sam Lantinga committed 2024-08-05 08:54:10 -07:00
1 parent 6f399c3beb
commit afde1cc9c2
2 files changed
+16 -1

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ int SDL_EVDEV_Init(void)
where device class is an integer representing the
SDL_UDEV_deviceclass and path is the full path to
the event device. */
const char *devices = SDL_getenv("SDL_EVDEV_DEVICES");
const char *devices = SDL_GetHint(SDL_HINT_EVDEV_DEVICES);
if (devices) {
/* Assume this is the old use of the env var and it is not in
ROM. */