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