UnityJoystickManager.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:
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.