C4 Engine
C4 Engine API Documentation

Action::HandleDirectionalUpdate

Defined in:  C4Input.h
Called when an associated input control has new directional data.
Prototype

virtual void HandleDirectionalUpdate(int32 value);

Parameters
value The new control data.
Description
The HandleDirectionalUpdate function is called when a directional pad input control to which the action object is assigned is manipulated by the user. If the user lets go of the directional pad (allowing it to return to the center position), then the value parameter is −1. Otherwise, the value parameter is in the range [0, 7], where 0 corresponds to straight up, and higher values represent directions in 45-degree increments moving clockwise. For instance, 1 corresponds to halfway between right and up, 2 means directly to the right, and 6 means directly to the left.
See Also

Action::HandleEngage

Action::HandleDisengage

Action::HandleAxisUpdate

Action::HandleSliderUpdate