Defined in:Encapsulates a directional pad input control.
class DirectionalControl : public InputControl
DirectionalControlclass represents an input control that is a directional pad.
If an action is assigned to a
DirectionalControlobject, then the action's
Action::HandleMovefunction is called when the state of the directional pad changes. If the user lets go of the directional pad (allowing it to return to the center position), then the value passed to the
HandleMovefunction is −1. Otherwise, the value 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.