Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Dwaari's avatar
Dwaari
Honored Guest
6 years ago

ovrInputState issue with Touch

Hi,

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

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

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,
No RepliesBe the first to reply