mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
Some duplicates nothing can tell apart: a remapper (DS4Windows, reWASD, x360ce) reads a controller and shows a virtual one of it, and nothing in the virtual pad's identity says so. Only the user knows, so the user chooses. Information > Input Information has a row under each controller, "Ignore This Controller": that model is left out by every joypad driver that knows a controller's ids - raw input, DirectInput, the hybrid driver, udev and the HID drivers - the way the controllers Steam Input stands in for already are. The controller driver restarts so it goes at once. Each model left out is listed after the controllers, a row to read it again. The list is the input_ignore_devices setting, written as SDL's SDL_GAMECONTROLLER_IGNORE_DEVICES is, and read beside that variable. input_device_ignored() moves into input_driver.c, as it now reads the settings; the check itself stays in input_ignore_devices.h with the list's helpers, which ignore_devices_test covers. The driver tests that link a driver are given the frontend's function.