/// <summary>
        /// Gets updated device status from the Kinect. This updates any properties in the
        /// child devices (Motor, LED, etc.)
        /// </summary>
        public void UpdateStatus()
        {
            // Ask for new device status
            KinectNative.freenect_update_tilt_state(this.devicePointer);

            // Get updated device status
            IntPtr ptr = KinectNative.freenect_get_tilt_state(this.devicePointer);

            this.cachedDeviceState = (FreenectTiltState)Marshal.PtrToStructure(ptr, typeof(FreenectTiltState));
        }
Exemple #2
0
		/// <summary>
		/// Gets updated device status from the Kinect. This updates any properties in the 
		/// child devices (Motor, LED, etc.)
		/// </summary>
		public void UpdateStatus()
		{
			// Ask for new device status
			KinectNative.freenect_update_tilt_state(this.devicePointer);
			
			// Get updated device status
			IntPtr ptr = KinectNative.freenect_get_tilt_state(this.devicePointer);
			this.cachedDeviceState = (FreenectTiltState)Marshal.PtrToStructure(ptr, typeof(FreenectTiltState));
		}