Class MouseSimulation | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class MouseSimulation

    Simulate mouse input from touch or gamepad input.

    Inheritance
    System.Object
    MouseSimulation
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Input
    Syntax
    public class MouseSimulation

    Properties

    instance

    Declaration
    public static MouseSimulation instance { get; }
    Property Value
    Type Description
    MouseSimulation

    useControllerInput

    Whether to translate gamepad and joystick input into mouse input.

    Declaration
    public bool useControllerInput { get; set; }
    Property Value
    Type Description
    System.Boolean

    useTouchInput

    Whether to translate touch input into mouse input.

    Declaration
    public bool useTouchInput { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Disable()

    Declaration
    public void Disable()

    Enable()

    Declaration
    public void Enable()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023