Editar

Compartilhar via


UnityJoystickManager.GetOrAddController(String) Method

Definition

Gets or adds a controller using the joystick name provided.

protected:
 virtual Microsoft::MixedReality::Toolkit::Input::UnityInput::GenericJoystickController ^ GetOrAddController(System::String ^ joystickName);
protected virtual Microsoft.MixedReality.Toolkit.Input.UnityInput.GenericJoystickController GetOrAddController (string joystickName);
abstract member GetOrAddController : string -> Microsoft.MixedReality.Toolkit.Input.UnityInput.GenericJoystickController
override this.GetOrAddController : string -> Microsoft.MixedReality.Toolkit.Input.UnityInput.GenericJoystickController
Protected Overridable 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.

Applies to