MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / SetPropertyError

Method SetPropertyError

headers/openvr_driver.h:3739–3749  ·  view source on GitHub ↗

Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */

Source from the content-addressed store, hash-verified

3737
3738/** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */
3739inline ETrackedPropertyError CVRPropertyHelpers::SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError )
3740{
3741 PropertyWrite_t batch;
3742 batch.writeType = PropertyWrite_SetError;
3743 batch.prop = prop;
3744 batch.eSetError = eError;
3745
3746 m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 );
3747
3748 return batch.eError;
3749}
3750
3751/** Clears any value or error set for the property. */
3752inline ETrackedPropertyError CVRPropertyHelpers::EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop )

Callers

nothing calls this directly

Calls 1

WritePropertyBatchMethod · 0.80

Tested by

no test coverage detected