Forum Discussion
Dwaari
6 years agoHonored Guest
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 11 months ago
- 2 years ago
- 3 months ago
- 2 years ago
- 2 years ago