docs.unity3d.com
    Show / Hide Table of Contents

    How do I…?

    A collection of frequently asked questions, and where to find their answers in the documentation.

    How do I...?

    • check if a specific key or button was pressed this frame?

    • check if any key or button was pressed

    • find all connected gamepads?

    • find the gamepad that the player is currently using?

    • know when a new device was plugged in?

    • create my own custom devices?

    • create a simple "Fire" type action?
      Use the same techniques shown for the "Jump" action in the Workflows section

    • require a button to be held down for some duration before triggering an action?

    • use a "positive" and a "negative" button to drive an axis?

    • create a UI to rebind input in my game?

    • set up an Action to specifically target the left-hand XR controller?

    • make my left-hand XR controller my right-hand one?

    • get all current touches from the touchscreen?

    • deal with my gamepad data arriving in a format different from GamepadState?

    • force the Input System to use my own layout when the native backend discovers a specific Device?

    • add deadzoning to my gamepad sticks?

    • give my head tracking an extra update before rendering?

    • record events flowing through the system?

    • see events as they're processed?

    • see what Devices I have and what state they're in?

    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