docs.unity3d.com
    Show / Hide Table of Contents

    Namespace UnityEngine.InputSystem.Controls

    Classes

    AnyKeyControl

    A control that simply checks the entire state it's been assigned for whether there's any non-zero bytes. If there are, the control returns 1.0; otherwise it returns 0.0.

    AxisControl

    A floating-point axis control.

    ButtonControl

    An axis that has a trigger point beyond which it is considered to be pressed.

    DeltaControl

    A control representing a two-dimensional motion vector that accumulates within a frame and resets at the beginning of a frame.

    DiscreteButtonControl

    A button that is considered pressed if the underlying state has a value in the specific range.

    DoubleControl

    A control reading a Double.

    DpadControl

    A control made up of four discrete, directional buttons. Forms a vector but can also be addressed as individual buttons.

    DpadControl.DpadAxisControl

    IntegerControl

    A generic input control reading integer values.

    KeyControl

    A key on a Keyboard.

    QuaternionControl

    A generic input control reading quaternion (rotation) values.

    StickControl

    A two-axis thumbstick control that can act as both a vector and a four-way dpad.

    TouchControl

    A control representing a touch contact.

    TouchPhaseControl

    A control reading a TouchPhase value.

    TouchPressControl

    A button that reads its pressed state from phase.

    Vector2Control

    A floating-point 2D vector control composed of two AxisControls.

    Vector3Control

    A floating-point 3D vector control composed of three AxisControl.

    Enums

    AxisControl.Clamp

    Clamping behavior for an axis control.

    DiscreteButtonControl.WriteMode

    How WriteValueIntoState(Single, Void*) should behave.

    In This Article
    • Classes
    • Enums
    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