From: Jochen Sprickerhof <jochen@sprickerhof.de>
Date: Tue, 6 Nov 2012 20:39:14 +0100
Subject: Add support for Kinect product id

taken from https://kforge.ros.org/openni/drivers
---
 Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp b/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp
index f358f6a..b86283e 100644
--- a/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp
+++ b/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp
@@ -34,6 +34,8 @@
 #define XN_SENSOR_5_0_PRODUCT_ID	0x0500
 #define XN_SENSOR_6_0_PRODUCT_ID	0x0600
 #define XN_SENSOR_6_0_1_PRODUCT_ID	0x0601
+#define XN_SENSOR_MSK_VENDOR_ID   0x045E
+#define XN_SENSOR_MSK_PRODUCT_ID  0x02AE
 
 //---------------------------------------------------------------------------
 // Enums
@@ -399,6 +401,10 @@ XnStatus XnSensorIO::EnumerateSensors(XnConnectionString* aConnectionStrings, Xn
 	}
 #else
 	XnStringsHash devicesSet;
+	
+	// search for a MSK device
+  nRetVal = Enumerate(XN_SENSOR_MSK_VENDOR_ID, XN_SENSOR_MSK_PRODUCT_ID, devicesSet);
+  XN_IS_STATUS_OK(nRetVal);
 
 	// search for a v6.0.1 device
 	nRetVal = Enumerate(XN_SENSOR_VENDOR_ID, XN_SENSOR_6_0_1_PRODUCT_ID, devicesSet);
