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. Dismiss Notice

Resolved How to get the correct binding index depending on the device you are using?

Discussion in 'Input System' started by Johnscaban, Mar 7, 2022.

  1. Johnscaban

    Johnscaban

    Joined:
    May 9, 2020
    Posts:
    23
    I'm trying to get the correct binding index to be able to rebind it. The problem is that I also want controller support. How can I get the correct binding index if I'm using a controller or a keyboard to later be able to rebind it? I'm using the C# generated class.
     
  2. Johnscaban

    Johnscaban

    Joined:
    May 9, 2020
    Posts:
    23
    I decided to go with a different approach and its working. I'm now using the player input component.