Search Unity

Button input mapping to Rift S controllers in Unity

Discussion in 'Documentation' started by Deleted User, Jul 29, 2020.

  1. Deleted User

    Deleted User

    Guest

    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?