Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How do you check which input device is currently being used?

Discussion in 'Input System' started by dgaban, Jun 6, 2022.

  1. dgaban

    dgaban

    Joined:
    Jan 17, 2018
    Posts:
    6
    I want to be able to detect in realtime whether the player is using a gamepad (and which gamepad specifically i.e. xbox, dual shock, switch pro, etc.) or keyboard/mouse so I can display the correct control icons on-screen (such as showing A to interact if xbox, circle to interact if dual shock, F if keyboard, etc.).

    I haven't been able to find good documentation on how to do this.
     
  2. ByE100k

    ByE100k

    Joined:
    Oct 23, 2021
    Posts:
    1
    Inspect the gameobject that holds your Player Input component.
    At the bottom it'll hold the input specifics of your player during play.
     

    Attached Files: