Added SDL_HINT_EVDEV_DEVICES

This commit is contained in:
Sam Lantinga 2024-08-03 12:02:50 -07:00
parent 6f399c3beb
commit afde1cc9c2
2 changed files with 16 additions and 1 deletions

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. */