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; }
public override bool IsPressed(MiControl control) { return !IsReleased(control); }
public override bool IsReleased(MiControl control) { if (controlStates[control] == ButtonState.Released) return true; return false; }
public override ButtonState this[MiControl control] { get { return controlStates[control]; } set { controlStates[control] = value; } }