예제 #1
0
 private IEnumerator<ulong> MoveCursor(MiControl dir)
 {
     if (activeLocation.Neighbors.ContainsKey(dir))
     {
         activeLocation = activeLocation.Neighbors[dir];
         cursor.Position = new Point(activeLocation.ButtonBase.Position.X - 50, activeLocation.ButtonBase.Position.Y + 30);
         arrow.Play();
     }
     yield break;
 }
예제 #2
0
 public override bool IsPressed(MiControl control)
 {
     return !IsReleased(control);
 }
예제 #3
0
 public override bool IsReleased(MiControl control)
 {
     if (controlStates[control] == ButtonState.Released) return true;
     return false;
 }
예제 #4
0
 public override ButtonState this[MiControl control]
 {
     get { return controlStates[control]; }
     set { controlStates[control] = value; }
 }