C4 Engine
C4 Engine API Documentation

InputControl::SetInputControlAction

Defined in:  C4Input.h
Assigns an action to an input control.
Prototype

void SetInputControlAction(Action *action);

Parameters
action The action to assign to the input control. This can be nullptr to remove any previously assigned action.
Description
The SetInputControlAction function assigns an Action object to an input control. Once an action has been assigned, its member functions are called whenever the input control processes an event.
See Also

InputControl::GetInputControlAction

Action