# TryGetInputDevices(List<InputDevice>)

> Gets a list of all connected InputDevice s reported by this XRInputSubsystem.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.XR](/engine/6000.0/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule

```csharp
public bool TryGetInputDevices(List<InputDevice> devices)
```

### Parameters

**** (\[List\<InputDevice>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list of devices reported by this subsystem.

### Returns

| Type                                                          | Description                                                                                                                                         |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if the [XRInputSubsystem](/engine/6000.0/script-reference/unityengine/xr/xrinputsubsystem.md) retrieves any devices. Returns false otherwise. |
