void SetState(Common.ButtonState state_) { if (state_ == Common.ButtonState.OnPress) { if (state == Common.ButtonState.OnPress || state == Common.ButtonState.OnHolding) { state_ = Common.ButtonState.OnHolding; } } state = state_; isInputFrame = true; }
public bool IsState(Common.ButtonState state_) { return(state == state_); }