public bool IsLeftHandConfidenceHigh(Int64 userId)
{
if (dictUserIdToIndex.ContainsKey(userId))
{
int index = dictUserIdToIndex[userId];
if (index >= 0 && index < sensorData.bodyCount &&
bodyFrame.bodyData[index].bIsTracked != 0)
{
return (bodyFrame.bodyData[index].leftHandConfidence == KinectInterop.TrackingConfidence.High);
}
}
return false;
}