C# Class AGENT.Contrib.Hardware.CombinationAgentButtonListener

Handles detection of simultaneous button presses.
NOTE: Consuming classes will have issues if they are detecting both double and triple presses (IE, (A+B | A+C | B+C) & A+B+C), because the double button event will occur first, followed by the triple button event.
Datei anzeigen Open project: nothingmn/AGENT.Contrib

Public Methods

Method Description
CombinationAgentButtonListener ( ) : System
CombinationAgentButtonListener ( AgentButtonListener listener ) : System
Dispose ( ) : void

Private Methods

Method Description
Dispose ( bool disposing ) : void
GetPressedButtons ( ) : Hashtable
OnAgentButtonListenerPressed ( AgentButton button, InterruptPort port, AgentButtonState state, System.DateTime time ) : void

Method Details

CombinationAgentButtonListener() public method

public CombinationAgentButtonListener ( ) : System
return System

CombinationAgentButtonListener() public method

public CombinationAgentButtonListener ( AgentButtonListener listener ) : System
listener AgentButtonListener
return System

Dispose() public method

public Dispose ( ) : void
return void