evdev.ignored

evdev

ignored(info) -> ignore

Check whether the environment asks a game to ignore a device

info is a device's dev.info. The rule is SDL3's, from the variables Steam sets for the games it launches. They are read on every call.

  1. Steam's virtual pad, 0x28de/0x11ff, is kept only when SDL_GAMECONTROLLER_ALLOW_STEAM_VIRTUAL_GAMEPAD is set and not empty, does not start with 0, and does not read false in any case. The two lists do not apply to it.
  2. When SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT holds an entry, a device on it is kept and every other device is ignored. SDL_GAMECONTROLLER_IGNORE_DEVICES is not read then.
  3. Otherwise a device on SDL_GAMECONTROLLER_IGNORE_DEVICES is ignored.

A list holds 0xVVVV/0xPPPP entries split by commas or whitespace. The hex digits match in either case, up to four of them. Any other entry is skipped. A value that starts with @ names a file that holds the list. A file that does not read gives an empty list. A missing vendor or product reads as 0.