class InputControl
Defined in:
Encapsulates an individual input device control.
C4Input.h
Definition
class InputControl : public Tree<InputControl>, public Memory<InputDevice>
Member Functions
InputControl::GetInputControlType |
Returns the type of an input control. |
InputControl::GetInputControlHidUsage |
Returns the 32-bit HID usage value for an input control. |
InputControl::GetInputControlName |
Returns the name of an input control. |
InputControl::GetInputControlAction |
Returns the action assigned to an input control. |
InputControl::SetInputControlAction |
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.
kInputControlGroup |
Group of input controls. |
kInputControlKeyButton |
Key button control. |
kInputControlGenericButton |
Generic button control. |
kInputControlDirectional |
Directional pad control. |
kInputControlLinearAxis |
Linear axis control. |
kInputControlRotationAxis |
Rotation axis control. |
kInputControlDeltaAxis |
Delta axis control. |
kInputControlSlider |
Slider control. |
Action
objects. An action is assigned to an input control using the InputControl::SetInputControlAction
function.
Base Classes
Tree<InputMgr> |
Input controls are organized in a tree hierarchy. |
Memory<InputDevice> |
Input controls are allocated in a dedicated heap. |
See Also