docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CommonUsages

    A collection of common usage string values as reported by usages.

    Inheritance
    object
    CommonUsages
    Namespace: UnityEngine.InputSystem
    Assembly: Unity.InputSystem.dll
    Syntax
    public static class CommonUsages

    Fields

    Back

    Button to navigate to previous location.

    Declaration
    public static readonly InternedString Back
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Escape on keyboard, B button on gamepad.

    In general, the "Back" control is used for moving backwards in the navigation history of a UI. This is used, for example, in hierarchical menu structures to move back to parent menus (e.g. from the "Settings" menu back to the "Main" menu). Consoles generally have stringent requirements as to which button has to fulfill this role.

    BatteryStrength

    Axis representing charge of battery (1=full, 0=empty).

    Declaration
    public static readonly InternedString BatteryStrength
    Field Value
    Type Description
    InternedString

    Cancel

    Button to not accept the current choice.

    Declaration
    public static readonly InternedString Cancel
    Field Value
    Type Description
    InternedString

    Forward

    Button to navigate to next location.

    Declaration
    public static readonly InternedString Forward
    Field Value
    Type Description
    InternedString

    Hatswitch

    The primary hat-switch control on input devices with hat-switches such as joysticks or gamepads.

    Declaration
    public static readonly InternedString Hatswitch
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Joystick or gamepad hat-switch.

    HighFreqMotor

    High-frequency haptic motor for force-feedback.

    Declaration
    public static readonly InternedString HighFreqMotor
    Field Value
    Type Description
    InternedString

    Horizontal

    Horizontal motion axis.

    Declaration
    public static readonly InternedString Horizontal
    Field Value
    Type Description
    InternedString
    Remarks

    Example: X axis on mouse.

    LeftHand

    Device in left hand.

    Declaration
    public static readonly InternedString LeftHand
    Field Value
    Type Description
    InternedString
    Remarks

    Example: left hand XR controller.

    LowFreqMotor

    Low-frequency haptic motor for force-feedback.

    Declaration
    public static readonly InternedString LowFreqMotor
    Field Value
    Type Description
    InternedString

    Menu

    Button to bring up menu.

    Declaration
    public static readonly InternedString Menu
    Field Value
    Type Description
    InternedString

    Modifier

    A modifier action control that modifies usage of other controls.

    Declaration
    public static readonly InternedString Modifier
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Keyboard modifier keys like CTRL, SHIFT, ALT, OPTION, etc.

    Orientation

    The spatial orientation control on input devices with spatial tracking.

    Declaration
    public static readonly InternedString Orientation
    Field Value
    Type Description
    InternedString
    Remarks

    Example: User head-orientation in tracking-space using e.g. a head-tracking system. This could for example be a VR tracking system or another user-facing tracking sensor.

    Point

    A screen-space point.

    Declaration
    public static readonly InternedString Point
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Touch contact point.

    Position

    The spatial position control on input devices with spatial tracking.

    Declaration
    public static readonly InternedString Position
    Field Value
    Type Description
    InternedString
    Remarks

    Example: User head position in tracking-space using e.g. a head-tracking system. This could for example be a VR tracking system or another user-facing tracking sensor.

    Pressure

    Pressure level axis.

    Declaration
    public static readonly InternedString Pressure
    Field Value
    Type Description
    InternedString
    Remarks

    Example: pen pressure.

    Primary2DMotion

    Primary 2D motion control.

    Declaration
    public static readonly InternedString Primary2DMotion
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Left stick on a gamepad.

    PrimaryAction

    The primary action control on any input device, such as a gamepad, mouse, or keyboard.

    Declaration
    public static readonly InternedString PrimaryAction
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Primary mouse button (left button on right-handed configuration, right button on left-handed configuration), south-button on a gamepad.

    PrimaryTrigger

    The primary trigger control on input devices with triggers.

    Declaration
    public static readonly InternedString PrimaryTrigger
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Right trigger-button on a gamepad.

    RightHand

    Device in right hand.

    Declaration
    public static readonly InternedString RightHand
    Field Value
    Type Description
    InternedString
    Remarks

    Example: right hand XR controller.

    ScrollHorizontal

    Axis to scroll horizontally.

    Declaration
    public static readonly InternedString ScrollHorizontal
    Field Value
    Type Description
    InternedString

    ScrollVertical

    Axis to scroll vertically.

    Declaration
    public static readonly InternedString ScrollVertical
    Field Value
    Type Description
    InternedString

    Secondary2DMotion

    Secondary 2D motion control.

    Declaration
    public static readonly InternedString Secondary2DMotion
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Right stick on a gamepad.

    SecondaryAction

    Secondary action control on any input device, such as a gamepad, mouse, or keyboard.

    Declaration
    public static readonly InternedString SecondaryAction
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Secondary mouse button (right button on right-handed configuration, left button on left-handed configuration), east-button on a gamepad.

    SecondaryTrigger

    The secondary trigger control on input devices with triggers.

    Declaration
    public static readonly InternedString SecondaryTrigger
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Left trigger-button on a gamepad.

    Submit

    Button to confirm the current choice.

    Declaration
    public static readonly InternedString Submit
    Field Value
    Type Description
    InternedString

    Twist

    Rotation around single, fixed axis.

    Declaration
    public static readonly InternedString Twist
    Field Value
    Type Description
    InternedString
    Remarks

    Example: twist on joystick or twist of pen (few pens support that).

    Vertical

    Vertical motion axis.

    Declaration
    public static readonly InternedString Vertical
    Field Value
    Type Description
    InternedString
    Remarks

    Example: Y axis on mouse.


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Fields
      • Back
      • BatteryStrength
      • Cancel
      • Forward
      • Hatswitch
      • HighFreqMotor
      • Horizontal
      • LeftHand
      • LowFreqMotor
      • Menu
      • Modifier
      • Orientation
      • Point
      • Position
      • Pressure
      • Primary2DMotion
      • PrimaryAction
      • PrimaryTrigger
      • RightHand
      • ScrollHorizontal
      • ScrollVertical
      • Secondary2DMotion
      • SecondaryAction
      • SecondaryTrigger
      • Submit
      • Twist
      • Vertical
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)