Skip to content

Constants

Namespace: CtrlDS4

DEFAULT_DEBOUNCE_MS

constexpr uint16_t DEFAULT_DEBOUNCE_MS = 10

Default debounce time of the bound buttons, in milliseconds: longer than the bounces of most buttons (see Controller::setDebounceTime()).

DEFAULT_REPORT_INTERVAL_MS

constexpr uint16_t DEFAULT_REPORT_INTERVAL_MS = 4

Default time between two input reports sent to the host, in milliseconds: the rate of a real DS4 over USB (see Controller::setReportInterval()).

STICK_MIN

constexpr uint8_t STICK_MIN = 0

Value of a stick axis pushed fully left (X) or up (Y).

STICK_CENTER

constexpr uint8_t STICK_CENTER = 128

Value of a stick axis at rest.

STICK_MAX

constexpr uint8_t STICK_MAX = 255

Value of a stick axis pushed fully right (X) or down (Y).

ANALOG_READ_MAX

constexpr uint16_t ANALOG_READ_MAX = 1023

Highest value returned by analogRead() at its default resolution (10 bits).

TRIGGER_MIN

constexpr uint8_t TRIGGER_MIN = 0

Value of a released trigger.

TRIGGER_MAX

constexpr uint8_t TRIGGER_MAX = 255

Value of a fully pressed trigger.

MAC_ADDRESS_SIZE

constexpr uint8_t MAC_ADDRESS_SIZE = 6

Number of bytes of a MAC address.