Gamepad.Gamepads Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The list of all connected gamepads.
public:
static property IVectorView<Gamepad ^> ^ Gamepads { IVectorView<Gamepad ^> ^ get(); };
static IVectorView<Gamepad> Gamepads();
public static IReadOnlyList<Gamepad> Gamepads { get; }
var iVectorView = Gamepad.gamepads;
Public Shared ReadOnly Property Gamepads As IReadOnlyList(Of Gamepad)
Property Value
The list of all connected gamepads.
Remarks
Gamepad objects are managed by the system, therefore you don't have to create or initialize them. Instead, you can access connected gamepads through this property. Because you might only be interested in some of the connected gamepads, we recommend that you maintain your own collection.
This list is initially empty and will not list gamepads even if they are already connected. After a short period this will return a complete list of gamepads.