Forum Discussion
rupert
7 years agoProtege
Documentation update for VrApi
The documentation is out-of-date with respect to the API. This code sample...
ovrInputCapabilityHeader capsHeader;...is missing the setting of the header specified in VrApi_Input.h before calling vrapi_GetInputDeviceCapabilities:
if ( vrapi_EnumerateInputDevices( ovrContext, 0, &capsHeader ) >= 0 )
{
if ( capsHeader.Type == ovrControllerType_TrackedRemote )
{
ovrInputTrackedRemoteCapabilities remoteCaps;
if ( vrapi_GetInputDeviceCapabilities( ovr, &remoteCaps.Header ) >= 0 )
{
// remote is connected
}
}
}
remoteCaps.Header = capsHeader;1 Reply
- rupertProtegeWhile we're at it: I think ovrContext and ovr are both the same ovrMobile* and the variable names should be the same to avoid confusion.
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
- 1 year ago