Skip to content

StickAxis

Namespace: CtrlDS4

enum StickAxis : uint8_t

Single axes of the analog sticks, for the controls driven one axis at a time.

Their values go from -1 to 1, 0 being at rest: X goes from left (-1) to right (1), and Y from down (-1) to up (1).

Values

LeftStickX

LeftStickX = 0

Horizontal axis of the left stick.

LeftStickY

LeftStickY = 1

Vertical axis of the left stick.

RightStickX

RightStickX = 2

Horizontal axis of the right stick.

RightStickY

RightStickY = 3

Vertical axis of the right stick.