OpenVRDeviceManager.GetOrAddController(String) 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 joystick name provided.
protected:
override Microsoft::MixedReality::Toolkit::Input::UnityInput::GenericJoystickController ^ GetOrAddController(System::String ^ joystickName);
protected override Microsoft.MixedReality.Toolkit.Input.UnityInput.GenericJoystickController GetOrAddController (string joystickName);
override this.GetOrAddController : string -> Microsoft.MixedReality.Toolkit.Input.UnityInput.GenericJoystickController
Protected Overrides Function GetOrAddController (joystickName As String) As GenericJoystickController
Parameters
- joystickName
- String
The name of the joystick from Unity's Input.GetJoystickNames
Returns
A new controller reference.