Exemplo n.º 1
0
 public static bool GetButton(SimonButtonType buttonType)
 {
     return(SimonButtonPressed[(int)buttonType]);
 }
Exemplo n.º 2
0
 public static bool GetButtonUp(SimonButtonType buttonType)
 {
     return(!SimonButtonPressed[(int)buttonType] && SimonButtonPressedLastFrame[(int)buttonType]);
 }
Exemplo n.º 3
0
 void UpdateButtonStateFromSimonX(SimonButtonType buttonType, int buttonIndex)
 {
     SimonButtonPressedLastFrame[(int)buttonType] = SimonButtonPressed[(int)buttonType];
     SimonButtonPressed[(int)buttonType]          = TargetSimonX.IsButtonDepressed(buttonIndex);
 }