How to make a "specific" unpaired Device list?

Hejhej, I’ve been staring at the documentation for 3 days now and I’m getting where i want to be.
But I wasnt able to find anything regarding this:
There is the function GetUnpairedInputDevices which reads out a list. But I need this list with only the XInputcontroller or gamepads for now. So that i can do something like:
var allUnpairedDevices = InputUser.GetUnpairedInputDevices();
gamepad = allUnpairedDevices[0]
I know this is not the best code and it would be much cleaner to ask for an input of the user and assign that input to a gamepad, but I’m not not able to do that either.
Thank you out there for making this Inputcontroller :slight_smile:

if there is any information i can give you to make my problem more clear, I’ll post them right away :slight_smile:

This should work:

var allUnpairedDevices = InputUser.GetUnpairedInputDevices();

foreach (var dev in allUnpairedDevices)
{
     if (dev.device.ToString().Contains("XInput"))
     {
          Debug.Log(dev.displayName);
          Debug.Log("Unconnected XInput controller, oh yeah.");
     }
}

In the loop, you can just add them to your own list or do what you like w/ it :slight_smile:

Thanks so much! This is so simple… I guess i just needed some input from outside on this topic. This helps so much! :slight_smile: