We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class JoystickController

    Example script to demonstrate joystick control in sample scene

    Inheritance
    Object
    JoystickController
    Namespace: Microsoft.MixedReality.Toolkit.Experimental.Joystick
    Assembly: cs.temp.dll.dll
    Syntax
    public class JoystickController : MonoBehaviour

    Fields

    MoveSpeed

    Declaration
    public float MoveSpeed
    Field Value
    Type Description
    Single

    ReboundSpeed

    Declaration
    public float ReboundSpeed
    Field Value
    Type Description
    Single

    RotationSpeed

    Declaration
    public float RotationSpeed
    Field Value
    Type Description
    Single

    ScaleSpeed

    Declaration
    public float ScaleSpeed
    Field Value
    Type Description
    Single

    SensitivityForwardBack

    Declaration
    public float SensitivityForwardBack
    Field Value
    Type Description
    Single

    SensitivityLeftRight

    Declaration
    public float SensitivityLeftRight
    Field Value
    Type Description
    Single

    Properties

    Mode

    Declaration
    public JoystickMode Mode { get; set; }
    Property Value
    Type Description
    JoystickMode

    TargetObject

    Declaration
    public GameObject TargetObject { get; set; }
    Property Value
    Type Description
    GameObject

    Methods

    JoystickModeMove()

    Set the joystick mode from a UI button.

    Declaration
    public void JoystickModeMove()

    JoystickModeRotate()

    Set the joystick mode from a UI button.

    Declaration
    public void JoystickModeRotate()

    JoystickModeScale()

    Set the joystick mode from a UI button.

    Declaration
    public void JoystickModeScale()

    StartDrag()

    The ObjectManipulator script uses this to determine when the joystick is grabbed.

    Declaration
    public void StartDrag()

    StopDrag()

    The ObjectManipulator script uses this to determine when the joystick is released.

    Declaration
    public void StopDrag()
    In This Article
    Back to top Generated by DocFX