XR Device Simulator simulate InputDevices in Unity

Can XR Device Simulator simulate InputDevices? How i see InputDevices return empty list of devices always.

To detect controller button click i use code

InputDevices.GetDevicesWithCharacteristics(InputDeviceCharacteristics.Controller, devices);

device.TryGetFeatureValue(CommonUsages.primaryButton, out bool buttonState)

Can make it works in simulator? How i see in simulator GetDevicesWithCharacteristics with InputDeviceCharacteristics.Controller doesn’t return anything.

What simulator are you referring to? The OpenXR WG does not provide one of its own - do you mean the Meta XR simulator?

The way to detect controller button presses in OpenXR is through use of the action system - you would create an action set and boolean action for whatever high-level behavior (jump, teleport, etc) you want to trigger using that button, then suggest bindings. I believe the latest Unity interaction system works roughly the same as the underlying OpenXR action system.

i use XR Interaction Simulator XR Interaction Simulator | XR Interaction Toolkit | 3.1.0
I’m just starting to use openxr and may be confused by the terminology.