Defined in:Encapsulates a button input control.
class ButtonControl : public InputControl
ButtonControlclass is the base class for all input controls that are buttons.
If an action is assigned to a
ButtonControlobject, an internal counter for the action is incremented when the button is pressed, and it is decremented when the button is released. When the counter is incremented to 1, the action's
Action::HandleEngagefunction is called, and when the counter is decremented to 0, the action's
Action::HandleDisengagefunction is called. This mechanism allows an action to be assigned to multiple buttons without redundant events being reported.