private void HeadsetSetup()
        {
            //DeviceInfo[] infosArray = new DeviceInfo[10];
            //int found = 0;
            //Device.EnumerateDevices(infosArray, ref found);
            headset = new Device(Flags.NoHeadTracking);
            Error e = Device.LastError;
            if (headset.Opened)
            {
                // get device information
                headset.EnableStereoVision(true);
                // Turn on the headset if it was sleeping
                headset.KeepAlive();
            }
            else
            {
                headset.Dispose();
                headset = null;
            }

        }
        private void HeadsetSetup()
        {
            DeviceInfo[] infosArray = new DeviceInfo[10];
            int found = 0;
            Device.EnumerateDevices(infosArray, ref found);
            headset = new Device(Flags.NoHeadTracking);
            tracker = new Device(Flags.None);

            DeviceData data = new DeviceData();
            headset.PollHeadTrackerRawData(data);
            Error e = Device.LastError;
            if (headset.Opened)
            {
                bool test1 = headset.CanDoHeadTracking;
                bool test2 = tracker.CanDoHeadTracking;
                // get device information
                headset.EnableStereoVision(true);
                // Turn on the headset if it was sleeping
                headset.KeepAlive();
            }
            else
            {
                headset.Dispose();
                headset = null;
            }

        }