コード例 #1
0
ファイル: Boxes.cs プロジェクト: ranxian/KiNaomatics
 void selectableSlider_ItemSelect(object sender, NITE.IndexDirectionEventArgs e)
 {
     if (e.SelectionDirection == NITE.Direction.Up)
     {
         this.flowRouter.ActiveListener = this.boxes[e.Item];
     }
 }
コード例 #2
0
ファイル: CentralDeformatory.cs プロジェクト: timofei7/TiNWii
 /// <summary>
 /// handle swiping left
 /// </summary>
 /// <param name="sender">
 /// A <see cref="System.Object"/>
 /// </param>
 /// <param name="e">
 /// A <see cref="NITE.VelocityAngleEventArgs"/>
 /// </param>
 void HandleNiteSwipeDetectorSwipeLeft(object sender, NITE.VelocityAngleEventArgs e)
 {
     ++swipe;
     if (swipe == 1)
     {
         nite.HUD.text = "Swipe Left Again to Reset!";
     }
     else if (swipe == 2)
     {
         //Application.LoadLevel("TiNWiiTestScene");
     }
 }
コード例 #3
0
ファイル: Boxes.cs プロジェクト: ranxian/KiNaomatics
 void selectableSlider_ItemHover(object sender, NITE.IndexEventArgs e)
 {
     switch (e.Item)
     {
         case 0:
             this.Box1.BackColor = Color.Yellow;
             this.Box2.BackColor = Color.LightBlue;
             this.Box3.BackColor = Color.LightBlue;
             break;
         case 1:
             this.Box1.BackColor = Color.LightBlue;
             this.Box2.BackColor = Color.Yellow;
             this.Box3.BackColor = Color.LightBlue;
             break;
         case 2:
             this.Box1.BackColor = Color.LightBlue;
             this.Box2.BackColor = Color.LightBlue;
             this.Box3.BackColor = Color.Yellow;
             break;
     }
 }
コード例 #4
0
 void sessionManager_SessionStart(object sender, NITE.PositionEventArgs e)
 {
     this.flowRouter.ActiveListener = this.selectableSlider;
 }
コード例 #5
0
 void selectableSlider_PrimaryPointDestroy(object sender, NITE.IdEventArgs e)
 {
     this.SliderArea.BackColor = Color.White;
 }
コード例 #6
0
 void selectableSlider_PrimaryPointCreate(object sender, NITE.HandFocusEventArgs e)
 {
     this.SliderArea.BackColor = Color.Red;
 }
コード例 #7
0
 void sessionManager_SessionStart(object sender, NITE.PositionEventArgs e)
 {
     Console.WriteLine("Session started");
     this.flowRouter.ActiveListener = this.boxes;
 }
コード例 #8
0
 void sessionManager_SessionProgress(object sender, NITE.SessionProgressEventArgs e)
 {
     Console.WriteLine("Session progress ({0}, {1}, {2}) - {3} [{4}]", e.Position.X,
             e.Position.Y, e.Position.Z, e.Progress,  e.GestureName);
 }
コード例 #9
0
 void sessionManager_SessionStart(object sender, NITE.PositionEventArgs e)
 {
     Console.WriteLine("Session started. Please wave ({0}, {1}, {2})...", e.Position.X,
             e.Position.Y, e.Position.Z);
 }