Search Unity

Joystick use with SteamVR

Discussion in 'VR' started by Spifany, May 25, 2019.

  1. Spifany

    Spifany

    Joined:
    Dec 23, 2017
    Posts:
    6

    Attached Files:

  2. Spifany

    Spifany

    Joined:
    Dec 23, 2017
    Posts:
    6
    Someone please ? :/
     
  3. Spifany

    Spifany

    Joined:
    Dec 23, 2017
    Posts:
    6
    Really, am i the only who can't use the buttons ? Their is no tutorial on how to use it !
     
  4. jackpr

    jackpr

    Unity Technologies

    Joined:
    Jan 18, 2018
    Posts:
    50
    Hi there,

    Your mapping looks right to me. For comparison, I've attached the entry that is created by the XR Legacy Input Helpers package. It's worth mentioning that axis 5 is for the right controller's vertical axis - it won't pick up the left controller's vertical axis. That's mapped to Axis 2 aka "Y Axis."

    Here's a link to the doc page for using Input Manager: https://docs.unity3d.com/Manual/ConventionalGameInput.html. For an axis like this you can get the value of the axis in a script by using the following code:

    Code (CSharp):
    1. value = Input.GetAxis ("Vertical");  // Where Vertical is the name of the axis in Input Manager
    Furthermore, I encourage you to check out our XR input APIs. They are a different way to get input separate from using the Input Manager. https://docs.unity3d.com/2019.1/Documentation/Manual/xr_input.html

    I hope that helps! Let me know if you continue to have troubles.
     

    Attached Files:

    ROBYER1 likes this.