AGENT.Contrib.Hardware.MultiButtonHelper.Current_OnButtonPress C# (CSharp) Method

Current_OnButtonPress() public method

public Current_OnButtonPress ( Buttons button, InterruptPort port, ButtonDirection direction, System.DateTime time ) : void
button Buttons
port Microsoft.SPOT.Hardware.InterruptPort
direction ButtonDirection
time System.DateTime
return void
        void Current_OnButtonPress(Buttons button, InterruptPort port, ButtonDirection direction, DateTime time)
        {
            if (direction == ButtonDirection.Up)
            {
                _buttonHitList.Add(button);
                clickTimer.Change(MaxClickWaitTime, Timeout.Infinite);
            }
        }