![]() |
• Input Manager | ||
|
API Links
Developer Links
|
class ButtonControlDefined in:
Encapsulates a button input control.
C4Input.hDefinition
Description
The ButtonControl class is the base class for all input controls that are buttons.If an action is assigned to a ButtonControl object, 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::Begin function is called, and when the counter is decremented to 0, the action's Action::End function is called. This mechanism allows an action to be assigned to multiple buttons without redundant events being reported.
Base Classes
See Also
|