InputDevices
An interface for accessing devices in the XR input subsytem.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
public class InputDevices
Remarks
To route haptic feedback to XR input devices, specify an XRNode as the destination. This interface provides access to input devices using an XRNode. For example, use the use XRNode.LeftHand and XRNode.RightHand to access the left or right devices.
Static Methods
Method | Description |
|---|---|
| GetDeviceAtXRNode | Gets the input device at a given XRNode endpoint. |
| GetDevices | Gets a list of active input devices available to the XR Input Subsystem. |
| GetDevicesAtXRNode | Gets a list of active input devices available to the XR Input Subsystem at a given XRNode endpoint. |
| GetDevicesWithCharacteristics | Gets the list of active XR input devices that match the specified InputDeviceCharacteristics. |
Static Events
Member | Description |
|---|---|
| deviceConfigChanged | Defines the delegate to use to register events when an InputDevice's configuration changes. |
| deviceConnected | Defines the delegate to use to register events when an InputDevice is connected. |
| deviceDisconnected | Defines the delegate to use to register events when an InputDevice is disconnected. |