Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

ovrInputState issue with Touch


I am trying to get the button state with the code on the documentation :

<div>if (OVR_SUCCESS(ovr_GetInputState(this-&gt;session_, ovrControllerType_RTouch, &amp;RtouchinputState)))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; std::cout &lt;&lt; "last update Rtouch : " &lt;&lt; RtouchinputState.TimeInSeconds &lt;&lt; std::endl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (RtouchinputState.Buttons) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; std::cout &lt;&lt; "Rtouch button pressed" &lt;&lt; std::endl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (RtouchinputState.Buttons &amp; ovrButton_A)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; std::cout &lt;&lt; " Handle A button being pressed " &lt;&lt; std::endl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></div><div>}</div>

And the input state seems to stay at 0 whatever the button i press. The touch are working, i can use them in others applications. Also the updated time spent is always 1.854e+06, is it normal ? The tracking state looks to work, i can get the poses of my right and left touch.

Any ideas ?

Best regards,
Sign In or Register to comment.