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