Types
All types are declared in DS5States.h.
Structs
FDS5OutputState
The full output state of one controller. Used by DS Set Full Output State.
| Field | Type | Notes |
|---|---|---|
LeftRumble | float | Heavy motor, 0–1 |
RightRumble | float | Soft motor, 0–1 |
MicrophoneLed | EMicLed | |
bDisableLeds | bool | |
PlayerLeds | FPlayerLeds | |
Lightbar | FLinearColor | Sent as 0–1 → 0–255, no sRGB conversion |
SpeakerVolume | float | Controller speaker, 0–1 (default 1) |
HeadphoneVolume | float | Headphone jack, 0–1 (default 1) |
LeftTrigger | FDS5TriggerEffect | L2 |
RightTrigger | FDS5TriggerEffect | R2 |
FDS5TriggerEffect
One adaptive trigger effect. EffectType decides which fields are used; the Details panel and Make FDS5TriggerEffect only show those. Out-of-range values are clamped when the effect is sent.
| Field | Range | Used by |
|---|---|---|
EffectType | ETriggerEffectType | all |
Position | 0–9 | Feedback, Vibration |
StartPosition | 0–8 (Weapon 2–7) | Weapon, Slope Feedback, Bow, Galloping, Machine |
EndPosition | 1–9 (Weapon, Bow up to 8) | Weapon, Slope Feedback, Bow, Galloping, Machine |
Strength | 1–8 | Feedback, Weapon, Bow |
StartStrength, EndStrength | 1–8 | Slope Feedback |
Amplitude | 1–8 | Vibration |
Frequency | 1–255 Hz | Vibration, Multiple Position Vibration, Galloping, Machine, Effect Ex |
ZoneValues | 10 × 0–8 | Multiple Position Feedback, Multiple Position Vibration |
SnapForce | 1–8 | Bow |
FirstFoot, SecondFoot | 0–6, 1–7 | Galloping |
AmplitudeA, AmplitudeB | 0–7 | Machine |
Period | 0–255 (tenths of a second) | Machine |
LegacyStartPosition, LegacyEndPosition, LegacyForce | 0–255 | Continuous / Section Resistance (Legacy) |
bKeepEffect, BeginForce, MiddleForce, EndForce | 0–255 | Effect Ex (Legacy) |
RawBytes | up to 11 bytes | Raw |
FPlayerLeds
| Field | Type |
|---|---|
Bitmask | EPlayerLed |
bPlayerLedFade | bool |
Brightness | ELedBrightness |
FDSMotion
Returned by DS Get Motion. Axes are the controller's own: X right, Y up, Z towards the player.
| Field | Type | Unit |
|---|---|---|
Gyroscope | Vector | degrees per second (X pitch, Y yaw, Z roll) |
Accelerometer | Vector | g, gravity included |
Gravity | Vector | g, accelerometer smoothed over about 0.1 s |
UserAcceleration | Vector | g, Accelerometer − Gravity |
Tilt | Rotator | degrees: Pitch and Roll from Gravity, Yaw always 0 |
FDSTouchPoint
| Field | Type | Notes |
|---|---|---|
bTouching | bool | |
TouchId | int | Changes at every new touch |
Position | Vector 2D | 0–1, origin top-left. Keeps the last value after the finger lifts |
FDSBatteryInfo
| Field | Type | Notes |
|---|---|---|
Level | float | 0–1, in steps of 10% |
State | EDSBatteryState |
FDSTriggerFeedback
| Field | Type | Notes |
|---|---|---|
Position | int | Low 4 bits of the status byte |
State | int | High 4 bits |
Raw | int | The whole byte |
Not documented by Sony: the values may change between firmware versions.
UDualSenseSpeakerSettings
#include "DualSenseAudioEndpoint.h"
Shown as DualSense Speaker Settings in the Endpoint Settings of a Sound Submix Endpoint whose Endpoint Type is DualSense Speaker. See Controller speaker.
| Field | Type | Notes |
|---|---|---|
ControllerId | int | Controller slot, 0–3 (default 0) |
Gain | float | Extra gain before the controller's volume, 0–4 (default 1) |
Enums
EDSTriggerHand
Left, Right, Both.
EDSBatteryState
Discharging, Charging, Full, Error (charging stopped: temperature or voltage out of range).
ETriggerEffectType
| Value | Display name |
|---|---|
Off | Off |
Feedback | Feedback |
Weapon | Weapon |
Vibration | Vibration |
SlopeFeedback | Slope Feedback |
MultiplePositionFeedback | Multiple Position Feedback |
MultiplePositionVibration | Multiple Position Vibration |
Bow | Bow |
Galloping | Galloping |
Machine | Machine |
ContinuousResistance | Continuous Resistance (Legacy) |
SectionResistance | Section Resistance (Legacy) |
EffectEx | Effect Ex (Legacy, Deprecated) |
Raw | Raw Bytes |
EPlayerLedPreset
| Value | LEDs lit |
|---|---|
Off | none |
Player1 | center |
Player2 | center-left, center-right |
Player3 | left, center, right |
Player4 | left, center-left, center-right, right |
EPlayerLed (bit flags)
OFF, LEFT, MIDDLE_LEFT, MIDDLE, MIDDLE_RIGHT, RIGHT.
ELedBrightness
High, Medium, Low.
EMicLed
OFF, ON, PULSE (shown as Off, On, Pulse in Blueprints).