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

Method SetProperty

headers/openvr_driver.h:3537–3549  ·  view source on GitHub ↗

Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */

Source from the content-addressed store, hash-verified

3535
3536/** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */
3537inline 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

Callers 1

SetHiddenAreaMethod · 0.80

Calls 1

WritePropertyBatchMethod · 0.80

Tested by

no test coverage detected