C4 Engine Terathon Software C4 Engine API Documentation

• Input Manager

API Links
Developer Links

class InputControl

Defined in:  C4Input.h
Encapsulates an individual input device control.
Definition

class InputControl : public Tree<InputControl>, public Memory<InputDevice>

Member Functions
InputControl::GetControlType Returns the type of an input control.
InputControl::GetControlName Returns the name of an input control.
InputControl::GetControlAction Returns the action assigned to an input control.
InputControl::SetControlAction Assigns an action to an input control.
Description
The InputControl class represents an individual input control for an input device. An input control can have one of the following types.
kInputGroup A group of input controls.
kInputKeyButton A key button control.
kInputGenericButton A generic button control.
kInputLinearAxis A linear axis control.
kInputRotationAxis A rotation axis control.
kInputDeltaAxis A delta axis control.
kInputSlider A slider control.
kInputDirectional A directional pad control.
Events for an input control are communicated to the application through Action objects. An action is assigned to an input control using the InputControl::SetControlAction function.
Base Classes
Tree<InputMgr> Input controls are stored in a tree structure.
Memory<InputDevice> Input controls are allocated in a dedicated heap.
See Also

Action

InputDevice