示例#1
0
    // Token: 0x06000028 RID: 40 RVA: 0x0000241C File Offset: 0x0000061C
    private string GetStringProperty(global::Valve.VR.ETrackedDeviceProperty prop)
    {
        global::Valve.VR.ETrackedPropertyError etrackedPropertyError = global::Valve.VR.ETrackedPropertyError.TrackedProp_Success;
        uint   stringTrackedDeviceProperty = this.hmd.GetStringTrackedDeviceProperty(0U, prop, null, 0U, ref etrackedPropertyError);
        bool   flag = stringTrackedDeviceProperty > 1U;
        string result;

        if (flag)
        {
            global::System.Text.StringBuilder stringBuilder = new global::System.Text.StringBuilder((int)stringTrackedDeviceProperty);
            this.hmd.GetStringTrackedDeviceProperty(0U, prop, stringBuilder, stringTrackedDeviceProperty, ref etrackedPropertyError);
            result = stringBuilder.ToString();
        }
        else
        {
            result = ((etrackedPropertyError != global::Valve.VR.ETrackedPropertyError.TrackedProp_Success) ? etrackedPropertyError.ToString() : "<unknown>");
        }
        return(result);
    }
示例#2
0
 // Token: 0x06000029 RID: 41 RVA: 0x00002488 File Offset: 0x00000688
 public float GetFloatProperty(global::Valve.VR.ETrackedDeviceProperty prop)
 {
     global::Valve.VR.ETrackedPropertyError etrackedPropertyError = global::Valve.VR.ETrackedPropertyError.TrackedProp_Success;
     return(this.hmd.GetFloatTrackedDeviceProperty(0U, prop, ref etrackedPropertyError));
 }
示例#3
0
 // Token: 0x0600011F RID: 287 RVA: 0x0000B490 File Offset: 0x00009690
 public global::Valve.VR.HmdMatrix34_t GetMatrix34TrackedDeviceProperty(uint unDeviceIndex, global::Valve.VR.ETrackedDeviceProperty prop, ref global::Valve.VR.ETrackedPropertyError pError)
 {
     return(this.FnTable.GetMatrix34TrackedDeviceProperty(unDeviceIndex, prop, ref pError));
 }
示例#4
0
 // Token: 0x06000120 RID: 288 RVA: 0x0000B4B8 File Offset: 0x000096B8
 public uint GetStringTrackedDeviceProperty(uint unDeviceIndex, global::Valve.VR.ETrackedDeviceProperty prop, global::System.Text.StringBuilder pchValue, uint unBufferSize, ref global::Valve.VR.ETrackedPropertyError pError)
 {
     return(this.FnTable.GetStringTrackedDeviceProperty(unDeviceIndex, prop, pchValue, unBufferSize, ref pError));
 }
示例#5
0
 // Token: 0x0600011E RID: 286 RVA: 0x0000B468 File Offset: 0x00009668
 public ulong GetUint64TrackedDeviceProperty(uint unDeviceIndex, global::Valve.VR.ETrackedDeviceProperty prop, ref global::Valve.VR.ETrackedPropertyError pError)
 {
     return(this.FnTable.GetUint64TrackedDeviceProperty(unDeviceIndex, prop, ref pError));
 }