-- @/=[C]:-1
function getRegisteredDevices(...)
local function isAnyControllerConnected()
local inputDevices = WinInput.getRegisteredDevices()
for _, d in ipairs(inputDevices) do
-- refreshes the list of plugged input devices, notifying UI of new/removed devices
local newDevicesList = WinInput.getRegisteredDevices()
local newDevicesSet = ListToSet(newDevicesList)