Skip to content

๐Ÿ“– API Reference: UDualSenseProxy

rafaelvaloto edited this page Nov 1, 2025 · 5 revisions

This class provides specific functionalities exclusive to the DualSense controller, such as controlling advanced haptic feedback, adaptive triggers, and the built-in microphone and player LEDs. It inherits from USonyGamepadProxy.

Methods

DeviceSettings

Updates the settings for a DualSense controller using its feature report.

Parameters

  • ControllerId (int32): The ID of the controller to be updated.
  • Settings (FDualSenseFeatureReport): The settings to be applied to the controller, encapsulated in an FDualSenseFeatureReport structure.

For more details ๐Ÿ“– API Reference: FDualSenseFeatureReport


AutomaticGun

Triggers a haptic feedback effect for an automatic gun using the DualSense controller.

Parameters

  • ControllerId (int32): The ID of the controller to apply the effect on.
  • BeginStrength (int32): The starting vibration strength of the trigger effect (range: 0 to 8).
  • MiddleStrength (int32): The middle vibration strength of the trigger effect (range: 0 to 8).
  • EndStrength (int32): The ending vibration strength of the trigger effect (range: 0 to 8).
  • Hand (EControllerHand): The controller hand (left or right) to which the effect is applied.
  • KeepEffect (bool): Whether to keep the effect active continuously.

SetFeedback

Sets haptic feedback for a DualSense controller.

Parameters

  • ControllerId (int32): The ID of the controller for which feedback is to be set.
  • BeginStrength (int32): The strength of the feedback at the beginning (range: 0 to 8).
  • MiddleStrength (int32): The strength of the feedback in the middle (range: 0 to 8).
  • EndStrength (int32): The strength of the feedback at the end (range: 0 to 8).
  • Hand (EControllerHand): The hand (left or right) associated with the controller.

Resistance

Applies a resistance effect to the trigger of a PlayStation DualSense controller.

Parameters

  • ControllerId (int32): The identifier of the controller to apply the resistance effect.
  • StartPosition (int32): The starting position of the resistance zone within the trigger's range (range: 0 to 8).
  • EndPosition (int32): The ending position of the resistance zone within the trigger's range (range: 0 to 8).
  • Strength (int32): The strength of the resistance effect (range: 0 to 8).
  • Hand (EControllerHand): The trigger to apply the effect to, specified as EControllerHand (e.g., Left or Right).

ContinuousResistance

Applies a continuous resistance effect on the adaptive trigger of a DualSense controller.

Parameters

  • ControllerId (int32): The ID of the controller to apply the effect to.
  • StartPosition (int32): The starting position of the resistance effect (range: 0 to 8).
  • Strength (int32): The intensity of the resistance effect (range: 0 to 8).
  • Hand (EControllerHand): The controller hand (e.g., left or right) to which the resistance effect applies.

Bow

Configures the bow effect on a DualSense controller.

Parameters

  • ControllerId (int32): The ID of the controller to configure the effect on.
  • StartPosition (int32): The starting position of the trigger effect (range: 0 to 8).
  • EndPosition (int32): The ending position of the trigger effect (range: 0 to 8).
  • BeginStrength (int32): The strength of the trigger's resistance at the starting position (range: 0 to 8).
  • EndStrength (int32): The strength of the trigger's resistance at the ending position (range: 0 to 8).
  • Hand (EControllerHand): The hand (left or right) where the effect will be applied.

Galloping

Triggers a galloping vibration effect on a DualSense controller.

Parameters

  • ControllerId (int32): The ID of the controller to apply the effect.
  • StartPosition (int32): The initial position of the galloping effect (range: 0 to 8).
  • EndPosition (int32): The final position of the galloping effect (range: 0 to 8).
  • FirstFoot (int32): The intensity for the first "foot" step in the galloping effect (range: 2 to 6).
  • SecondFoot (int32): The intensity for the second "foot" step in the galloping effect (range: Greater than FirstFoot to 7).
  • Frequency (float): The frequency at which the galloping effect repeats (e.g., 0.015) (range: 0.001 to 1.0).
  • Hand (EControllerHand): Specifies whether the effect is applied to the left or right hand.

Machine

Configures and applies machine-like haptic effects to the DualSense controller.

Parameters

  • ControllerId (int32): The ID representing the target controller to which effects will be applied.
  • StartPosition (int32): The starting position where the haptic effect begins on the controller (range: 0 to 8).
  • EndPosition (int32): The ending position where the haptic effect finishes on the controller (range: 0 to 8).
  • FirstFoot (int32): The position of the first foot in the haptic cycling effect (range: 0 to 8).
  • LasFoot (int32): The position of the last foot in the haptic cycling effect (range: 0 to 8).
  • Frequency (float): The frequency at which the haptic effect oscillates (range: 0.015 to 1.0).
  • Period (float): The period of the haptic cycle in seconds (range: 0.015 to 1.0).
  • Hand (EControllerHand): Specifies which hand the effect is directed towards (left or right).

Weapon

Configures a weapon effect on the DualSense controller using specified parameters.

Parameters

  • ControllerId (int32): The identifier for the target DualSense controller.
  • StartPosition (int32): The starting position of the effect in the trigger (min: 2) (range: 0 to 8).
  • EndPosition (int32): The ending position of the effect in the trigger (max: 7) (range: 0 to 8).
  • Strength (int32): The strength of the weapon effect (max: 8) (range: 0 to 8).
  • Hand (EControllerHand): Specifies which controller hand (left or right) should be affected by the weapon effect.

LedPlayerEffects

Controls the LED player light effects on the DualSense controller.

Parameters

  • ControllerId (int32): The identifier for the target controller.
  • Value (ELedPlayerEnum): The LED pattern enum specifying the LED configuration for the player indicator (e.g., Off, PlayerOne, PlayerTwo, etc.).
  • Brightness (ELedBrightnessEnum): The brightness level of the LED lights specified by an enum (e.g., Low, Medium, High).

NoResistance

Disables the resistance effect for the specified controller and hand.

Parameters

  • ControllerId (int32): The unique identifier for the DualSense controller.
  • Hand (EControllerHand): The hand (left or right) associated with the effect to disable resistance for.

StopTriggerEffect

Stops the trigger effect on a specific controller for the specified hand.

Parameters

  • ControllerId (int32): The unique identifier of the controller for which the trigger effect should be stopped.
  • HandStop (EControllerHand): Specifies which hand's trigger effect (left or right) should be stopped.

StopAllTriggersEffects

Stops all trigger effects currently active for the specified DualSense controller.

Parameters

  • ControllerId (int32): The ID of the DualSense controller for which to stop all trigger effects.

ResetEffects

Resets all haptic feedback effects for the specified DualSense controller.

Parameters

  • ControllerId (int32): The identifier of the controller whose effects are to be reset.

GetTriggerRightStrengthFeedback

Retrieves the strength of the right trigger feedback for the specified controller.

Parameters

  • ControllerId (int32): The unique identifier for the controller whose right trigger feedback strength is to be retrieved.

Returns

  • int32: The strength value of the right trigger feedback. Returns 0 if the controller instance is not found.

GetTriggerLeftStrengthFeedback

Retrieves the strength of the left trigger feedback for the specified DualSense controller.

Parameters

  • ControllerId (int32): The ID of the controller to retrieve the feedback strength for.

Returns

  • int32: The strength of the left trigger feedback as an integer. Returns 0 if the controller instance is not found.

Deprecated Methods โš ๏ธ

  • EnableTouch1: Use EnableTouch instead.
  • SetTriggerHapticFeedbackEffect: Use AutomaticGun instead.
  • EnableTouch2: Use EnableTouch instead.
  • EffectMachine: Use Machine instead.
  • EffectBow: Use Bow instead.
  • EffectNoResitance: Use NoResistance instead.
  • EffectSectionResitance: Use Resistance instead.
  • EffectContinuousResitance: Use ContinuousResistance instead.
  • EffectWeapon: Use Weapon instead.
  • EffectGalloping: Use Galloping instead.

See Also

Clone this wiki locally