C4 Engine
C4 Engine API Documentation

Action::HandleAxisUpdate

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

virtual void HandleAxisUpdate(float value);

Parameters
value The new control data.
Description
The HandleAxisUpdate function is called when the position of an analog axis control to which the action object is assigned is changed by the user. For an absolute axis, the value parameter is in the range [−1.0F, 1.0F], where 0.0F corresponds to the center position. For a relative axis (such as a mouse axis), the value parameter represents the relative displacement without normalization to any predefined range. For a slider axis, the value parameter is in the range [0.0F, 1.0F].
See Also

Action::HandleEngage

Action::HandleDisengage

Action::HandleSliderUpdate

Action::HandleDirectionalUpdate