Input.GetAxis() for HTC Vive controller not working in build
I am working on a project which is using the track pad on the Vive controller for swiping. I Have a script which is working in the editor but when I build the Input.GetAxis("axisname"); always returns -1.
I am only using the Unity standard Virtual Input Manager and have set up two axis for the right Vive controller according to this documentation: https://docs.unity3d.com/560/Documentation/Manual/OpenVRControllers.html
void Update ()
{
float x = Input.GetAxis(xAxisName);
float y = Input.GetAxis(yAxisName);
if(x != 0 || y != 0)
debugLog("X: " + x + " Y: " + y);
...if I restart S$$anonymous$$mVR and run the .exe file it works. But if i quit and start the .exe again it fails...
I will try at a different computer and see if it has the same issue
Your answer
![](https://koobas.hobune.stream/wayback/20220612134753im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do you build a string from user input? 0 Answers
Unity Input system not returning correct values for HTC Vive touchpad. 2 Answers
How do you access the input Axes and Buttons in XR 1 Answer
Do I need to use the Input Manager to register all input axes? 0 Answers
How to set rotation of GvrMain? 1 Answer