void selectableSlider_ItemSelect(object sender, NITE.IndexDirectionEventArgs e) { if (e.SelectionDirection == NITE.Direction.Up) { this.flowRouter.ActiveListener = this.boxes[e.Item]; } }
/// <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"); } }
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; } }
void sessionManager_SessionStart(object sender, NITE.PositionEventArgs e) { this.flowRouter.ActiveListener = this.selectableSlider; }
void selectableSlider_PrimaryPointDestroy(object sender, NITE.IdEventArgs e) { this.SliderArea.BackColor = Color.White; }
void selectableSlider_PrimaryPointCreate(object sender, NITE.HandFocusEventArgs e) { this.SliderArea.BackColor = Color.Red; }
void sessionManager_SessionStart(object sender, NITE.PositionEventArgs e) { Console.WriteLine("Session started"); this.flowRouter.ActiveListener = this.boxes; }
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); }
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); }