docs.unity3d.com
Search Results for

    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?

    In This Article
    Back to top
    Copyright © 2025 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)