Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */
| 3535 | |
| 3536 | /** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ |
| 3537 | inline ETrackedPropertyError CVRPropertyHelpers::SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ) |
| 3538 | { |
| 3539 | PropertyWrite_t batch; |
| 3540 | batch.writeType = PropertyWrite_Set; |
| 3541 | batch.prop = prop; |
| 3542 | batch.pvBuffer = pvNewValue; |
| 3543 | batch.unBufferSize = unNewValueSize; |
| 3544 | batch.unTag = unTag; |
| 3545 | |
| 3546 | m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); |
| 3547 | |
| 3548 | return batch.eError; |
| 3549 | } |
| 3550 | |
| 3551 | |
| 3552 | /** Returns a string property. If the device index is not valid or the property is not a string type this function will |
no test coverage detected