XRSDKDeviceManager.GetOrAddController(InputDevice) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or adds a controller using the InputDevice name provided.
protected:
virtual Microsoft::MixedReality::Toolkit::XRSDK::Input::GenericXRSDKController ^ GetOrAddController(UnityEngine::XR::InputDevice inputDevice);
protected virtual Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController GetOrAddController (UnityEngine.XR.InputDevice inputDevice);
abstract member GetOrAddController : UnityEngine.XR.InputDevice -> Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController
override this.GetOrAddController : UnityEngine.XR.InputDevice -> Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController
Protected Overridable Function GetOrAddController (inputDevice As InputDevice) As GenericXRSDKController
Parameters
- inputDevice
- UnityEngine.XR.InputDevice
The InputDevice from XR SDK.
Returns
The controller reference.