Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.