I am trying to develop an application that will move Cursor with my hand. I have written the complete code and its moving cursor with my Hand but scope is very limited, When i move my hand up, the cursor does not move accordingly. I have grab the hand points and set the mouse position by using the following code.
DepthImagePoint handPt;
Joint hand = skl.Joints[JointType.HandRight];
handPt = sensor.CoordinateMapper.MapSkeletonPointToDepthPoint(hand.Position, DepthImageFormat.Resolution640x480Fps30);
Mouse.setPosition(HandPt.X, handPt.Y)
Kindly tell me how move mouse correctly in Portrait view