Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */
| 3737 | |
| 3738 | /** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ |
| 3739 | inline 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. */ |
| 3752 | inline ETrackedPropertyError CVRPropertyHelpers::EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ) |
nothing calls this directly
no test coverage detected