Facebook Twitter YouTube

class AxisControl

Defined in:  TSInput.h
Encapsulates an axis input control.
Definition

class AxisControl : public InputControl

Description
The AxisControl class is the base class for all input controls that are based on a two-way axis.

If an action is assigned to an AxisControl object, then the action's Action::HandleUpdate function is called when the position of the axis control changes. For an absolute axis, the value passed to the HandleUpdate function is normalized to 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.
Base Classes
InputControl A AxisControl is a specific type of input control.
See Also

Action::HandleUpdate