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