Skip to main content

CCGameStickStatus

CCGameStickStatus

Cocos2D

Mapped from the gamepad game stick status, will tell yoyu when the game stick is down or up and the direction and magnitude of the stick movement in [u,v] coordinates.

Type: Struct

Fields

Direction(Cocos2D.CCPoint)

The direction of the stick movement as a unit vector.

IsDown(System.Boolean)

When true, the stick is down, otherwise it is up.

Magnitude(System.Single)

The magnitude of the stick movement, used to control soft or hard movements using the stick.