docs.unity3d.com
    Show / Hide Table of Contents

    D-Pad Interaction

    Unity OpenXR provides support for the Dpad Binding extension specified by Khronos. Use this layout to retrieve the bindings data that the extension returns. This extension allows the application to bind one or more digital actions to a trackpad or thumbstick as though it were a dpad by defining additional component paths to suggest bindings for.

    Enables the OpenXR interaction profile for Dpad Interaction and exposes the <DPad> layout within the Unity Input System.

    For more information about the Dpad Binding extension, see the OpenXR Specification.

    Available controls

    OpenXR Path Unity Control Name Type
    /input/thumbstick/dpad_up thumbstickDpadUp Boolean
    /input/thumbstick/dpad_down thumbstickDpadDown Boolean
    /input/thumbstick/dpad_left thumbstickDpadLeft Boolean
    /input/thumbstick/dpad_right thumbstickDpadRight Boolean
    /input/trackpad/dpad_up trackpadDpadUp Boolean
    /input/trackpad/dpad_down trackpadDpadDown Boolean
    /input/trackpad/dpad_left trackpadDpadLeft Boolean
    /input/trackpad/dpad_right trackpadDpadRight Boolean
    /input/trackpad/dpad_center trackpadDpadCenter Boolean
    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