Joystick Support | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Joystick Support

    The Input System currently has limited support for joysticks as generic HID controls only. It will make a best effort to identify controls based on the information provided by the HID descriptor of the device, but that may not always be accurate. These devices often work best when allowing the user to manually manually remap the controls.

    To offer better support for specific joysticks devices, you can also provide your own custom mappings for those devices. We hope to offer some mappings for common devices as part of the Input System package in the future. See the manual page on HID for more information.

    Controls

    Generic HID input devices which are recognized as joysticks are supported via the Joystick class. Joystick devices may have any number of controls as reported by the devices HID descriptor, but we always try to match at least these common controls:

    Control Type Description
    stick StickControl The main stick of the joystick.
    trigger ButtonControl The primary trigger of the joystick.
    In This Article
    • Controls
    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