Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Añadir Enter

  • Loading branch information...
commit 4ffc8a713a6b917e18b13c1e5eb622fc0f426253 1 parent 4df1067
@raulsa authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 ProyectoK/MainWindow.xaml.cs
View
19 ProyectoK/MainWindow.xaml.cs
@@ -116,11 +116,11 @@ void nui_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e)
// System.Threading.Thread.Sleep(950);
//}
- //if ((skeleton.Joints[JointID.Head].Position.Z - skeleton.Joints[JointID.HandLeft].Position.Z) > .5f)
- //{
- // Sendto_XBMC(LEFT);
- // System.Threading.Thread.Sleep(950);
- //}
+ if ((skeleton.Joints[JointID.Head].Position.Z - skeleton.Joints[JointID.HandLeft].Position.Z) > .5f)
+ {
+ Sendto_XBMC(ENTER);
+ System.Threading.Thread.Sleep(950);
+ }
//if ((skeleton.Joints[JointID.HandRight].Position.X - skeleton.Joints[JointID.HandLeft].Position.X) < .05f)
//{
@@ -133,8 +133,8 @@ void nui_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e)
// Sendto_XBMC(ESC);
// System.Threading.Thread.Sleep(950);
//}
-
- //Código del reconocimiento de gestos (Por ahora solo mano derecha)
+
+ //Código del reconocimiento de gestos (Por ahora solo mano derecha al distanciarse del tronco)
positionList.Add(new Vector3()
{
@@ -144,15 +144,16 @@ void nui_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e)
date = DateTime.Now
});
+
SwipeLeftToRight();
SwipeRightToLeft();
SwipeDownToUp();
if (positionList.Count() > 20)
{
- positionList.RemoveAt(0);
+ positionList.RemoveAt(0);
}
-
+
}
private bool Kinect_Start()
Please sign in to comment.
Something went wrong with that request. Please try again.