Action::HandleDirectionalUpdate
Defined in:
Called when an associated input control has new directional data.
C4Input.h
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