Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Button input mapping to Rift S controllers in Unity

Discussion in 'Documentation' started by owenjfb, Jul 29, 2020.

  1. owenjfb

    owenjfb

    Joined:
    May 27, 2020
    Posts:
    2
    I've been searching for a list of Unity button mappings to Rift S controllers, but haven't had any luck. The following list simply indicates button input numbers, as opposed to the name of the button themselves:

    https://docs.unity3d.com/ScriptReference/KeyCode.html

    On a Rift S controller, 'JoystickButton0' is button A. But I was only able to determine that by using 'JoystickButton0' in the code and then trying all the buttons myself to see which corresponded to it.

    Is there a list which indicates which buttons are tied to each of those names?
     
unityunity