IRL2 / SubtleGame

A psychophysics game for interactive molecular dynamics
Other
1 stars 0 forks source link

How do we access HMD + controller type? #44

Closed rhoslynroebuck closed 9 months ago

rhoslynroebuck commented 9 months ago

Using the following code (as in branch https://github.com/IRL2/SubtleGame/tree/accessing-hmd-type) prints out "Oculus Quest" when using Quest 2 and Quest 3. We need a way of accessing the exact make + model of the HMD and controllers being used.

InputDevice headDevice = InputDevices.GetDeviceAtXRNode(XRNode.Head);
string hmdName = headDevice.name;
Debug.Log("HMD TYPE:" + hmdName);
rhoslynroebuck commented 9 months ago

Fixed https://github.com/IRL2/SubtleGame/pull/48