Hi
On my quest 2 If I execute this code in the update:
InputDevice headDevice = InputDevices.GetDeviceAtXRNode(XRNode.Head);
Vector3 acceleration;
bool accelerationSupported = headDevice.TryGetFeatureValue(CommonUsages.deviceAcceleration, out acceleration);
string accelerationstring = acceleration.x.ToString() + "," + acceleration.y.ToString() + "," + acceleration.z.ToString() + ",";
I get ALWAYS 0,0,0 and to me seems a bug…
Also because accelerationSupported is ALWAYS true…
there lines:
bool userPresent = false;
bool presenceFeatureSupported = headDevice.TryGetFeatureValue(CommonUsages.userPresence, out userPresent);
Work as aspected